Back to index

glibc  2.9
eventfd.c File Reference
#include <errno.h>
#include <sys/eventfd.h>
#include <sysdep.h>

Go to the source code of this file.


int eventfd (int count, int flags)

Function Documentation

int eventfd ( int  count,
int  flags 

Definition at line 25 of file eventfd.c.

#ifdef __NR_eventfd2
  return INLINE_SYSCALL (eventfd2, 2, count, flags);
  /* 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
     kernel (sys_indirect) before implementing setting flags like
     O_NONBLOCK etc.  */
  if (flags != 0)
      __set_errno (EINVAL);
      return -1;

# ifdef __NR_eventfd
  return INLINE_SYSCALL (eventfd, 1, count);
# else
  __set_errno (ENOSYS);
  return -1;
# endif

Here is the call graph for this function:

Here is the caller graph for this function: