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.

Functions

int sigpending (sigset_t *set)

Variables

int __libc_missing_rt_sigs

Function Documentation

int sigpending ( sigset_t set)

Definition at line 39 of file sigpending.c.

{
#if __ASSUME_REALTIME_SIGNALS > 0
  return INLINE_SYSCALL (rt_sigpending, 2, CHECK_SIGSET (set), _NSIG / 8);
#else
# 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));
#endif
}

Here is the call graph for this function:


Variable Documentation

Definition at line 35 of file sigaction.c.