summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:51:14 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:51:14 +0100
commite76d4fb014bc7675199c0c00931b8508830a6343 (patch)
tree29f06d838c81b5fb8e6406ee6f28c1ac94ae7bc9 /sysdeps
parent63e9b4bd9c4a622659688c150b725cf3890b25d3 (diff)
downloadglibc-e76d4fb014bc7675199c0c00931b8508830a6343.tar.gz
Linux: epoll_pwait syscall number is always available
Due to the built-in tables, __NR_epoll_pwait is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/epoll_pwait.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c
index fcd2a47d85..66f04482c7 100644
--- a/sysdeps/unix/sysv/linux/epoll_pwait.c
+++ b/sysdeps/unix/sysv/linux/epoll_pwait.c
@@ -23,8 +23,6 @@
#include <sysdep-cancel.h>
#include <sys/syscall.h>
-#ifdef __NR_epoll_pwait
-
/* Wait for events on an epoll instance "epfd". Returns the number of
triggered events returned in "events" buffer. Or -1 in case of
error with the "errno" variable set to the specific error code. The
@@ -42,18 +40,4 @@ int epoll_pwait (int epfd, struct epoll_event *events,
return SYSCALL_CANCEL (epoll_pwait, epfd, events, maxevents,
timeout, set, _NSIG / 8);
}
-
-#else
-
-int epoll_pwait (int epfd, struct epoll_event *events,
- int maxevents, int timeout,
- const sigset_t *set)
-{
- __set_errno (ENOSYS);
- return -1;
-}
-stub_warning (epoll_pwait)
-
-#endif
-
libc_hidden_def (epoll_pwait)