[PATCH] Implement epoll_create1 and epoll_pwait system calls.
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed May 11 15:47:26 UTC 2011
On Wed, May 11, 2011 at 08:06:01AM +0200, Thierry Reding wrote:
>---
> libc/sysdeps/linux/common/epoll.c | 14 +++++++++++
> libc/sysdeps/linux/common/sys/epoll.h | 40 +++++++++++++++++++++++++++++---
> libc/sysdeps/linux/x86_64/sys/epoll.h | 36 ++++++++++++++++++++++++++++-
> 3 files changed, 85 insertions(+), 5 deletions(-)
>
>diff --git a/libc/sysdeps/linux/common/epoll.c b/libc/sysdeps/linux/common/epoll.c
>index dda9228..a5bd61b 100644
>--- a/libc/sysdeps/linux/common/epoll.c
>+++ b/libc/sysdeps/linux/common/epoll.c
>@@ -30,3 +37,10 @@ _syscall4(int,epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event *, even
> #ifdef __NR_epoll_wait
> _syscall4(int, epoll_wait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout)
> #endif
>+
>+/*
>+ * epoll_pwait()
>+ */
>+#ifdef __NR_epoll_pwait
>+_syscall5(int, epoll_pwait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout, __const sigset_t *, ss)
cancellation is missing here.
Care to send an updated patch?
TIA,
More information about the uClibc
mailing list