]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: epoll_pwait syscall number is always available
authorFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:51:14 +0000 (12:51 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:51:14 +0000 (12:51 +0100)
Due to the built-in tables, __NR_epoll_pwait is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/epoll_pwait.c

index fcd2a47d85d5dfa1a9a8f7232d1c151b1bf3ff45..66f04482c76ee90394ed3de36a327109a8dfcd48 100644 (file)
@@ -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)