From 23c167c6a524fbf7845340da6c038cd1c9f1a28f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 10 Oct 2019 09:56:07 +0200 Subject: [PATCH] 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 --- man2/select.2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/man2/select.2 b/man2/select.2 index d677ad8ee..16f14817a 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -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