Back to index

glibc  2.9
sigsuspend.c File Reference
#include <errno.h>
#include <signal.h>
#include <stddef.h>
#include <unistd.h>

Go to the source code of this file.


int __sigsuspend (sigset_t *set) const

Function Documentation

int __sigsuspend ( sigset_t set) const

Definition at line 28 of file sigsuspend.c.

  int mask;
  int sig;

  if (set == NULL)
      __set_errno (EINVAL);
      return -1;

  mask = 0;
  for (sig = 1; sig <= NSIG; ++sig)
    if (__sigismember (set, sig))
      mask |= sigmask (sig);

  return __sigpause (mask, 0);

Here is the call graph for this function: