(libc.info.gz) Blocking in BSD

Info Catalog (libc.info.gz) BSD Handler (libc.info.gz) BSD Signal Handling
 
 24.10.2 BSD Functions for Blocking Signals
 ------------------------------------------
 
  -- Macro: int sigmask (int SIGNUM)
      Preliminary: | MT-Safe | AS-Safe | AC-Safe |  POSIX Safety
      Concepts.
 
      This macro returns a signal mask that has the bit for signal SIGNUM
      set.  You can bitwise-OR the results of several calls to 'sigmask'
      together to specify more than one signal.  For example,
 
           (sigmask (SIGTSTP) | sigmask (SIGSTOP)
            | sigmask (SIGTTIN) | sigmask (SIGTTOU))
 
      specifies a mask that includes all the job-control stop signals.
 
  -- Function: int sigblock (int MASK)
      Preliminary: | MT-Safe | AS-Unsafe lock/hurd | AC-Unsafe lock/hurd
      |  POSIX Safety Concepts.
 
      Mask::) with a HOW argument of 'SIG_BLOCK': it adds the signals
      specified by MASK to the calling process's set of blocked signals.
      The return value is the previous set of blocked signals.
 
  -- Function: int sigsetmask (int MASK)
      Preliminary: | MT-Safe | AS-Unsafe lock/hurd | AC-Unsafe lock/hurd
      |  POSIX Safety Concepts.
 
      Mask::) with a HOW argument of 'SIG_SETMASK': it sets the calling
      process's signal mask to MASK.  The return value is the previous
      set of blocked signals.
 
  -- Function: int sigpause (int MASK)
      Preliminary: | MT-Unsafe race:sigprocmask/!bsd!linux | AS-Unsafe
      lock/hurd | AC-Unsafe lock/hurd |  POSIX Safety Concepts.
 
      This function is the equivalent of 'sigsuspend' ( Waiting for
      a Signal): it sets the calling process's signal mask to MASK, and
      waits for a signal to arrive.  On return the previous set of
      blocked signals is restored.
 
Info Catalog (libc.info.gz) BSD Handler (libc.info.gz) BSD Signal Handling
automatically generated by info2html