[PATCH] Implement epoll_create1 and epoll_pwait system calls.

Peter Mazinger ps.m at gmx.net
Wed May 11 18:28:01 UTC 2011


Hi

> 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?

IMHO we should add cancellation only to functions required by POSIX and leave the optionals out (or make the optionals a config option)

Peter
> 
> TIA,
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the uClibc mailing list