Back to index

glibc  2.9
Functions
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.

Functions

void __pthread_sigsuspend (const sigset_t *set)

Function Documentation

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

{
  INTERNAL_SYSCALL_DECL (err);
#if !__ASSUME_REALTIME_SIGNALS
  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)
       return;

      __pthread_missing_rt_sigs = 1;
    }
# endif

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

Here is the call graph for this function:

Here is the caller graph for this function: