From 45a8beb51c60506cda9d9fdeee05c21476dca0b0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 31 Oct 2008 17:41:36 +0000 Subject: 2008-10-02 Pierre Habouzit * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall and fix its calling convention. --- sysdeps/unix/sysv/linux/eventfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv/linux/eventfd.c') diff --git a/sysdeps/unix/sysv/linux/eventfd.c b/sysdeps/unix/sysv/linux/eventfd.c index 6ebfed86f1..4cd557983e 100644 --- a/sysdeps/unix/sysv/linux/eventfd.c +++ b/sysdeps/unix/sysv/linux/eventfd.c @@ -24,8 +24,8 @@ int eventfd (int count, int flags) { -#ifdef __NR_eventfd1 - return INLINE_SYSCALL (eventfd1, 1, flags); +#ifdef __NR_eventfd2 + return INLINE_SYSCALL (eventfd2, 2, count, flags); #else /* The old system call has no flag parameter which is bad. So we have to wait until we have to support to pass additional values to the -- cgit 1.4.1