summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 07:16:39 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:10:59 -0700
commitd4a43dc35be7a3833fc543958b2907d301896eb2 (patch)
tree57b6c89c4598105a68dc1ad7be7e51f8db5d3ab2 /libc/sysdeps/linux
parent9b44207a9364f1c2be8e77ab95e4efddd73b8a96 (diff)
downloaduClibc-alpine-d4a43dc35be7a3833fc543958b2907d301896eb2.tar.bz2
uClibc-alpine-d4a43dc35be7a3833fc543958b2907d301896eb2.tar.xz
ppoll: switch to INLINE_SYSCALL() to match glibc
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/ppoll.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/ppoll.c b/libc/sysdeps/linux/common/ppoll.c
index d550ae855..1d7a04ecb 100644
--- a/libc/sysdeps/linux/common/ppoll.c
+++ b/libc/sysdeps/linux/common/ppoll.c
@@ -25,18 +25,9 @@
/* libc_hidden_proto(ppoll) */
-# define __NR___libc_ppoll __NR_ppoll
-static __always_inline
-_syscall5(int, __libc_ppoll,
- struct pollfd *, fds,
- nfds_t, nfds,
- const struct timespec *, timeout,
- const __sigset_t *, sigmask,
- size_t, sigsetsize)
-
int
ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
- const __sigset_t *sigmask)
+ const sigset_t *sigmask)
{
/* The Linux kernel can in some situations update the timeout value.
We do not want that so use a local variable. */
@@ -46,7 +37,7 @@ ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
timeout = &tval;
}
- return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8);
+ return INLINE_SYSCALL(ppoll, 5, fds, nfds, timeout, sigmask, _NSIG / 8);
}
libc_hidden_def(ppoll)