This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH roland/sigvec] Remove sigvec.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]