Skip to content

Commit

Permalink
2008-10-02 Pierre Habouzit <madcoder@debian.org>
Browse files Browse the repository at this point in the history
	* sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
	and fix its calling convention.
  • Loading branch information
Ulrich Drepper committed Oct 31, 2008
1 parent ad12e63 commit 45a8beb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/unix/sysv/linux/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45a8beb

Please sign in to comment.