This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: NPOLLFILE ?
- To: Roland McGrath <roland at frob dot com>
- Subject: Re: NPOLLFILE ?
- From: Andreas Jaeger <aj at suse dot de>
- Date: Tue, 31 Jul 2001 08:22:43 +0200
- Cc: drepper at cygnus dot com (Ulrich Drepper),libc-alpha at sources dot redhat dot com
- References: <20010731011612.88DD8998B2@perdition.linnaean.org>
Roland McGrath <roland@frob.com> writes:
>> Andreas Jaeger <aj@suse.de> writes:
>>
>> > Should I send a patch to remove it? grep revealed these occurences:
>>
>> Yes. Unless Roland remembers something.
>
> I'm sure that at the time I just looked at the poll.h headers on other
> systems for the set of symbols defined. If the header is nowadays
> standardized and this symbol is not in common use, then there is no reason
> to have it.
We do not reference it anywhere, it's not properly documented, it's
not part of any standard and I just checked Solaris 8 and they don't
have it either.
Here comes the patch. Ok to commit?
Andreas
2001-07-31 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/sparc/bits/poll.h (NPOLLFILE): Removed.
* sysdeps/unix/sysv/linux/mips/bits/poll.h (NPOLLFILE): Removed.
* sysdeps/unix/sysv/linux/m68k/bits/poll.h (NPOLLFILE): Removed.
* sysdeps/unix/sysv/linux/bits/poll.h (NPOLLFILE): Removed.
* sysdeps/generic/bits/poll.h (NPOLLFILE): Removed.
============================================================
Index: sysdeps/unix/sysv/linux/sparc/bits/poll.h
--- sysdeps/unix/sysv/linux/sparc/bits/poll.h 2001/07/06 04:56:21 1.4
+++ sysdeps/unix/sysv/linux/sparc/bits/poll.h 2001/07/31 06:19:02
@@ -41,8 +41,3 @@
#define POLLERR 0x008 /* Error condition. */
#define POLLHUP 0x010 /* Hung up. */
#define POLLNVAL 0x020 /* Invalid polling request. */
-
-#ifdef __USE_MISC
-/* Canonical number of polling requests to read in at a time in poll. */
-# define NPOLLFILE 30
-#endif
============================================================
Index: sysdeps/unix/sysv/linux/mips/bits/poll.h
--- sysdeps/unix/sysv/linux/mips/bits/poll.h 2001/07/06 04:56:18 1.4
+++ sysdeps/unix/sysv/linux/mips/bits/poll.h 2001/07/31 06:19:02
@@ -46,8 +46,3 @@
#define POLLERR 0x008 /* Error condition. */
#define POLLHUP 0x010 /* Hung up. */
#define POLLNVAL 0x020 /* Invalid polling request. */
-
-#ifdef __USE_MISC
-/* Canonical number of polling requests to read in at a time in poll. */
-# define NPOLLFILE 30
-#endif
============================================================
Index: sysdeps/unix/sysv/linux/m68k/bits/poll.h
--- sysdeps/unix/sysv/linux/m68k/bits/poll.h 2001/07/06 04:56:18 1.4
+++ sysdeps/unix/sysv/linux/m68k/bits/poll.h 2001/07/31 06:19:02
@@ -41,8 +41,3 @@
#define POLLERR 0x008 /* Error condition. */
#define POLLHUP 0x010 /* Hung up. */
#define POLLNVAL 0x020 /* Invalid polling request. */
-
-#ifdef __USE_MISC
-/* Canonical number of polling requests to read in at a time in poll. */
-# define NPOLLFILE 30
-#endif
============================================================
Index: sysdeps/unix/sysv/linux/bits/poll.h
--- sysdeps/unix/sysv/linux/bits/poll.h 2001/07/06 04:56:14 1.4
+++ sysdeps/unix/sysv/linux/bits/poll.h 2001/07/31 06:19:02
@@ -46,8 +46,3 @@
#define POLLERR 0x008 /* Error condition. */
#define POLLHUP 0x010 /* Hung up. */
#define POLLNVAL 0x020 /* Invalid polling request. */
-
-#ifdef __USE_MISC
-/* Canonical number of polling requests to read in at a time in poll. */
-# define NPOLLFILE 30
-#endif
============================================================
Index: sysdeps/generic/bits/poll.h
--- sysdeps/generic/bits/poll.h 2001/07/06 04:55:50 1.5
+++ sysdeps/generic/bits/poll.h 2001/07/31 06:19:02
@@ -38,8 +38,3 @@
#define POLLERR 010 /* Error condition. */
#define POLLHUP 020 /* Hung up. */
#define POLLNVAL 040 /* Invalid polling request. */
-
-#ifdef __USE_MISC
-/* Canonical number of polling requests to read in at a time in poll. */
-# define NPOLLFILE 30
-#endif
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj