[Glibc-bsd-commits] r4213 - trunk/glibc-ports/kfreebsd/bits
Robert Millan
rmh at alioth.debian.org
Sat Apr 21 09:26:35 UTC 2012
Author: rmh
Date: 2012-04-21 09:26:35 +0000 (Sat, 21 Apr 2012)
New Revision: 4213
Modified:
trunk/glibc-ports/kfreebsd/bits/poll.h
Log:
Remove POLLEXTEND, POLLATTRIB, POLLNLINK and POLLWRITE. They haven't been present
in kFreeBSD since 4.x era.
Import new event flags from HEAD: POLLINIGNEOF and POLLSTANDARD.
Import new timeout constant from HEAD: INFTIM.
Modified: trunk/glibc-ports/kfreebsd/bits/poll.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/poll.h 2012-04-20 22:18:36 UTC (rev 4212)
+++ trunk/glibc-ports/kfreebsd/bits/poll.h 2012-04-21 09:26:35 UTC (rev 4213)
@@ -31,16 +31,13 @@
/* These values are defined in XPG4.2. */
# define POLLRDNORM 0x0040 /* Normal data may be read. */
# define POLLRDBAND 0x0080 /* Priority data may be read. */
-# define POLLWRNORM 0x0004 /* Writing now will not block. */
+# define POLLWRNORM POLLOUT /* Writing now will not block. */
# define POLLWRBAND 0x0100 /* Priority data may be written. */
#endif
#ifdef __USE_BSD
-/* These are extensions for FreeBSD. */
-# define POLLEXTEND 0x0200 /* File size may have grown. */
-# define POLLATTRIB 0x0400 /* File attributes may have changed. */
-# define POLLNLINK 0x0800 /* File may have been moved/removed. */
-# define POLLWRITE 0x1000 /* File's contents may have changed. */
+/* General FreeBSD extension (currently only supported for sockets): */
+# define POLLINIGNEOF 0x2000 /* like POLLIN, except ignore EOF */
#endif
/* Event types always implicitly polled for. These bits need not be set in
@@ -49,3 +46,17 @@
#define POLLERR 0x0008 /* Error condition. */
#define POLLHUP 0x0010 /* Hung up. */
#define POLLNVAL 0x0020 /* Invalid polling request. */
+
+#ifdef __USE_BSD
+
+# define POLLSTANDARD (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|\
+ POLLWRBAND|POLLERR|POLLHUP|POLLNVAL)
+
+/*
+ * Request that poll() wait forever.
+ * XXX in SYSV, this is defined in stropts.h, which is not included
+ * by poll.h.
+ */
+#define INFTIM (-1)
+
+#endif
More information about the Glibc-bsd-commits
mailing list