Back to index

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

Go to the source code of this file.


int signalfd (int fd, const sigset_t *mask, int flags)

Function Documentation

int signalfd ( int  fd,
const sigset_t mask,
int  flags 

Definition at line 26 of file signalfd.c.

#ifdef __NR_signalfd4
  return INLINE_SYSCALL (signalfd4, 4, fd, mask, _NSIG / 8, 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_signalfd
  return INLINE_SYSCALL (signalfd, 3, fd, mask, _NSIG / 8);
# else
  __set_errno (ENOSYS);
  return -1;
# endif

Here is the call graph for this function:

Here is the caller graph for this function: