HPUX sigsetmask[2]






 sigsetmask(2)                                                 sigsetmask(2)





 NAME
      sigsetmask - set current signal mask

 SYNOPSIS
      #include <signal.h>

      long sigsetmask(long mask);

 DESCRIPTION
      sigsetmask() sets the current signal mask (those signals that are
      blocked from delivery).  Signal i is blocked if the i-th bit in mask,
      as specified with the macro sigmask(i), is a 1.

      It is not possible to mask signals that cannot be ignored, as
      documented in signal(5); this restriction is silently imposed by the
      system.

      sigblock() can be used to add elements to the set of blocked signals.

 RETURN VALUE
      The previous set of masked signals is returned.

 EXAMPLES
      The following call to sigsetmask() causes only the SIGUSR1 and SIGUSR2
      signals to be blocked:

           long oldmask;

           oldmask = sigsetmask (sigmask (SIGUSR1) | sigmask (SIGUSR2));

 WARNINGS
      Do not use sigsetmask() in conjunction with the facilities described
      under sigset(2V).

 AUTHOR
      sigsetmask() was developed by the University of California, Berkeley.

 SEE ALSO
      kill(2), sigblock(2), sigpause(2), sigprocmask(2), sigvector(2).















 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992