NPOLLFILE ?

Andreas Jaeger aj@suse.de
Mon Jul 30 02:38:00 GMT 2001


Ulrich Drepper <drepper@redhat.com> writes:

> Andreas Jaeger <aj@suse.de> writes:
> 
>> # define NPOLLFILE      30
>> 
>> this constant is not used anywhere in glibc.  Can anybody explain what
>> this really means?
> 
> I don't think it has any purpose and cannot remember that it actually
> got added (moved from sys/poll.h yes).  Perhaps some BSDism which can
> go.

Should I send a patch to remove it?  grep revealed these occurences:

./sysdeps/generic/bits/poll.h:# define NPOLLFILE        30
./sysdeps/unix/sysv/linux/bits/poll.h:# define NPOLLFILE        30
./sysdeps/unix/sysv/linux/m68k/bits/poll.h:# define NPOLLFILE   30
./sysdeps/unix/sysv/linux/mips/bits/poll.h:# define NPOLLFILE   30
./sysdeps/unix/sysv/linux/sparc/bits/poll.h:# define NPOLLFILE  30
./ChangeLog:    * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.

I just checked and the constant was already in the first revision of
io/sys/poll.h:
revision 1.1
date: 1994/05/12 02:55:58;  author: roland;  state: Exp;
entered into RCS


Any objections to remove these? 
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list