This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH roland/sigvec] Remove sigvec.
- From: Florian Weimer <fweimer at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 06 Oct 2014 11:44:32 +0200
- Subject: Re: [PATCH roland/sigvec] Remove sigvec.
- Authentication-results: sourceware.org; auth=none
- References: <20141003224414 dot 3445F2C3A61 at topped-with-meat dot com>
On 10/04/2014 12:44 AM, Roland McGrath wrote:
This removes the ancient sigvec function, which became obsolete in 1988 and
has probably not actually been used anywhere since a few years thereafter.
There are plenty more obsolete interfaces we should remove. To go
whole-hog on that, we should probably figure out a more conservative
procedure of staged deprecation (announcement and comple-time warnings in
one release, actual removal in the next). I'm not bothering with that for
sigvec because I think it's implausible that anything is really still using
this interface by now (and also because I'm lazy).
Uhm, the current lv package in Fedora and Debian uses it:
#ifdef HAVE_SIGVEC
struct sigvec sigVec;
sigVec.sv_handler = WindowChangeHandler;
sigVec.sv_mask = sigmask( SIGWINCH );
sigVec.sv_flags = SV_INTERRUPT;
sigvec( SIGWINCH, &sigVec, NULL );
sigVec.sv_handler = InterruptHandler;
sigVec.sv_mask = sigmask( SIGINT );
sigVec.sv_flags = SV_INTERRUPT;
sigvec( SIGINT, &sigVec, NULL );
#else
# ifdef SIGWINCH
signal( SIGWINCH, WindowChangeHandler );
# endif
signal( SIGINT, InterruptHandler );
#endif /* HAVE_SIGVEC */
HAVE_SIGVEC is true, and the first conditional is active.
--
Florian Weimer / Red Hat Product Security