This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: NPOLLFILE ?
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: NPOLLFILE ?
- From: Andreas Jaeger <aj at suse dot de>
- Date: Mon, 30 Jul 2001 11:38:25 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <hor8uyu8a3.fsf@gee.suse.de> <m3zo9m24wn.fsf@otr.mynet>
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