[PATCH roland/sigvec] Remove sigvec.

Florian Weimer fweimer@redhat.com
Mon Oct 6 09:44:00 GMT 2014


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



More information about the Libc-alpha mailing list