Back to index

glibc  2.9
sigblock.c File Reference
#include <errno.h>
#include <signal.h>
#include <sigset-cvt-mask.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int __sigblock (int mask)

Function Documentation

int __sigblock ( int  mask)

Definition at line 26 of file sigblock.c.

  sigset_t set, oset;

  if (sigset_set_old_mask (&set, mask) < 0)
    return -1;

  if (__sigprocmask (SIG_BLOCK, &set, &oset) < 0)
    return -1;

  return sigset_get_old_mask (&oset);