mirror of https://github.com/mkerrisk/man-pages
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:
parent
bce2cf9805
commit
23c167c6a5
|
@ -495,17 +495,18 @@ between the readable, writable, and exceptional condition notifications of
|
|||
.BR select ()
|
||||
and the event notifications provided by
|
||||
.BR poll (2)
|
||||
(and
|
||||
.BR epoll (7)):
|
||||
and
|
||||
.BR epoll (7):
|
||||
.PP
|
||||
.in +4n
|
||||
.EX
|
||||
#define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP |
|
||||
POLLERR)
|
||||
#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |
|
||||
EPOLLHUP | EPOLLERR)
|
||||
/* Ready for reading */
|
||||
#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT | POLLERR)
|
||||
#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |
|
||||
EPOLLERR)
|
||||
/* Ready for writing */
|
||||
#define POLLEX_SET (POLLPRI)
|
||||
#define POLLEX_SET (EPOLLPRI)
|
||||
/* Exceptional condition */
|
||||
.EE
|
||||
.in
|
||||
|
|
Loading…
Reference in New Issue