The attached patch implements the pepoll_wait system call, that extend the event wait mechanism with the same logic ppoll and pselect do. The definition of pepoll_wait is: int pepoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask, size_t sigsetsize); The difference between the vanilla epoll_wait and pepoll_wait is that the latter allows the caller to specify a signal mask to be set while waiting for events. Hence pepoll_wait will wait until either one monitored event, or an unmasked signal happen. If sigmask is NULL, the pepoll_wait system call will act exactly like epoll_wait. For the POSIX definition of pselect, information is available here: http://www.opengroup.org/onlinepubs/009695399/functions/select.html This patch goes over 2.6.15-mm4 and depends on the TIF_RESTORE_SIGMASK bits. Signed-off-by: Davide Libenzi - Davide arch/i386/kernel/syscall_table.S | 1 fs/eventpoll.c | 58 ++++++++++++++++++++++++++++++++++----- include/asm-i386/unistd.h | 3 +- include/linux/syscalls.h | 3 ++ 4 files changed, 57 insertions(+), 8 deletions(-)