summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/ppoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/ppoll.c')
-rw-r--r--sysdeps/unix/sysv/linux/ppoll.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/sysdeps/unix/sysv/linux/ppoll.c b/sysdeps/unix/sysv/linux/ppoll.c
index c4486af606..de7d3d6ac9 100644
--- a/sysdeps/unix/sysv/linux/ppoll.c
+++ b/sysdeps/unix/sysv/linux/ppoll.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006-2016 Free Software Foundation, Inc.
+/* Copyright (C) 2006-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
@@ -20,18 +20,9 @@
#include <signal.h>
#include <time.h>
#include <sys/poll.h>
-#include <kernel-features.h>
#include <sysdep-cancel.h>
-#ifdef __NR_ppoll
-# ifndef __ASSUME_PPOLL
-static int __generic_ppoll (struct pollfd *fds, nfds_t nfds,
- const struct timespec *timeout,
- const sigset_t *sigmask);
-# endif
-
-
int
ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
const sigset_t *sigmask)
@@ -45,24 +36,6 @@ ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
timeout = &tval;
}
- int result;
-
- result = SYSCALL_CANCEL (ppoll, fds, nfds, timeout, sigmask, _NSIG / 8);
-
-# ifndef __ASSUME_PPOLL
- if (result == -1 && errno == ENOSYS)
- result = __generic_ppoll (fds, nfds, timeout, sigmask);
-# endif
-
- return result;
+ return SYSCALL_CANCEL (ppoll, fds, nfds, timeout, sigmask, _NSIG / 8);
}
libc_hidden_def (ppoll)
-
-# ifndef __ASSUME_PPOLL
-# define ppoll static __generic_ppoll
-# endif
-#endif
-
-#ifndef __ASSUME_PPOLL
-# include <io/ppoll.c>
-#endif