Back to index

glibc  2.9
Functions | Variables
sigpending.c File Reference
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <bp-checks.h>
#include <kernel-features.h>

Go to the source code of this file.


int sigpending (sigset_t *set)


int __libc_missing_rt_sigs

Function Documentation

int sigpending ( sigset_t set)

Definition at line 39 of file sigpending.c.

  return INLINE_SYSCALL (rt_sigpending, 2, CHECK_SIGSET (set), _NSIG / 8);
# ifdef __NR_rt_sigpending
  /* First try the RT signals.  */
  if (!__libc_missing_rt_sigs)
      /* XXX The size argument hopefully will have to be changed to the
        real size of the user-level sigset_t.  */
      int saved_errno = errno;
      int result = INLINE_SYSCALL (rt_sigpending, 2, CHECK_SIGSET (set), _NSIG / 8);

      if (result >= 0 || errno != ENOSYS)
       return result;

      __set_errno (saved_errno);
      __libc_missing_rt_sigs = 1;
# endif

  return INLINE_SYSCALL (sigpending, 1, CHECK_SIGSET (set));

Here is the call graph for this function:

Variable Documentation

Definition at line 35 of file sigaction.c.