summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-13 17:50:56 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-09-05 15:06:17 +0200
commit5b1c29a4a3097b62a222f36996dcd66ed7713cfd (patch)
tree9c208897307f01894a41f5a1877766356a84e1a5
parent3c621767d197c0831e05314fcd8dc8e7d4adae68 (diff)
epoll_wait.2: Use syscall(SYS_...); for system calls without a wrapperrejected
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--man2/epoll_wait.28
1 files changed, 7 insertions, 1 deletions
diff --git a/man2/epoll_wait.2 b/man2/epoll_wait.2
index 69c79d6ec..6df6dabb8 100644
--- a/man2/epoll_wait.2
+++ b/man2/epoll_wait.2
@@ -32,7 +32,13 @@ epoll_wait, epoll_pwait, epoll_pwait2 \- wait for an I/O event on an epoll file
.BI "int epoll_pwait(int " epfd ", struct epoll_event *" events ,
.BI " int " maxevents ", int " timeout ,
.BI " const sigset_t *" sigmask );
-.BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
+.PP
+.BR "#include <linux/eventpoll.h>" \
+" /* Definition of " "struct epoll_event" " */"
+.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
+.B #include <unistd.h>
+.PP
+.BI "int syscall(SYS_epoll_pwait2, int " epfd ", struct epoll_event *" events ,
.BI " int " maxevents ", const struct timespec *" timeout ,
.BI " const sigset_t *" sigmask );
.\" FIXME: Check if glibc has added a wrapper for epoll_pwait2(),