aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-10-31 17:41:36 +0000
committerUlrich Drepper <drepper@redhat.com>2008-10-31 17:41:36 +0000
commit45a8beb51c60506cda9d9fdeee05c21476dca0b0 (patch)
tree02063c025d0284a797ca71f8f6fa1e8ee8cd4fcf
parentad12e63582e400495c26df747c597fe2359cccc2 (diff)
downloadglibc-45a8beb51c60506cda9d9fdeee05c21476dca0b0.tar
glibc-45a8beb51c60506cda9d9fdeee05c21476dca0b0.tar.gz
glibc-45a8beb51c60506cda9d9fdeee05c21476dca0b0.tar.bz2
glibc-45a8beb51c60506cda9d9fdeee05c21476dca0b0.zip
2008-10-02 Pierre Habouzit <madcoder@debian.org>
* sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall and fix its calling convention.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/eventfd.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b4775de783..cd2f6ed06e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-02 Pierre Habouzit <madcoder@debian.org>
+
+ * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
+ and fix its calling convention.
+
2008-10-07 Andreas Schwab <schwab@suse.de>
[BZ #6942]
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