select.2: POLLIN_SET/POLLOUT_SET/POLLEX_SET are now defined in terms of EPOLL*

Since kernel commit a9a08845e9acbd224e4ee466f5c1275ed50054e8, the
equivalence between select() and poll()/epoll is defined in terms
of the EPOLL* constants, rather than the POLL* constants.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-10-10 09:56:07 +02:00
parent bce2cf9805
commit 23c167c6a5
1 changed files with 7 additions and 6 deletions

View File

@ -495,17 +495,18 @@ between the readable, writable, and exceptional condition notifications of
.BR select () .BR select ()
and the event notifications provided by and the event notifications provided by
.BR poll (2) .BR poll (2)
(and and
.BR epoll (7)): .BR epoll (7):
.PP .PP
.in +4n .in +4n
.EX .EX
#define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP | #define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |
POLLERR) EPOLLHUP | EPOLLERR)
/* Ready for reading */ /* Ready for reading */
#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT | POLLERR) #define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |
EPOLLERR)
/* Ready for writing */ /* Ready for writing */
#define POLLEX_SET (POLLPRI) #define POLLEX_SET (EPOLLPRI)
/* Exceptional condition */ /* Exceptional condition */
.EE .EE
.in .in