Back to index

glibc  2.9
pt-sigsuspend.c File Reference
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <linuxthreads/internals.h>
#include <kernel-features.h>

Go to the source code of this file.


void __pthread_sigsuspend (const sigset_t *set)

Function Documentation

Definition at line 31 of file pt-sigsuspend.c.

  static int __pthread_missing_rt_sigs;

# ifdef __NR_rt_sigsuspend
  /* First try the RT signals.  */
  if (!__pthread_missing_rt_sigs)
      /* XXX The size argument hopefully will have to be changed to the
        real size of the user-level sigset_t.  */
      int r;
      r = INTERNAL_SYSCALL (rt_sigsuspend, err, 2, set, _NSIG / 8);
      if (INTERNAL_SYSCALL_ERRNO (r, err) != ENOSYS)

      __pthread_missing_rt_sigs = 1;
# endif

  INTERNAL_SYSCALL (sigsuspend, err, 3, 0, 0, set->__val[0]);
  INTERNAL_SYSCALL (rt_sigsuspend, err, 2, set, _NSIG / 8);

Here is the call graph for this function:

Here is the caller graph for this function: