*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> sigblock (2)              
Title
Content
Arch
Section
 

Contents


 sigblock(2)                                                     sigblock(2)
                               TO BE OBSOLETED



 NAME    [Toc]    [Back]
      sigblock - block signals

 SYNOPSIS    [Toc]    [Back]
      #include <signal.h>

      long sigblock(long mask);

 DESCRIPTION    [Toc]    [Back]
      sigblock() causes the signals specified in mask to be added to the set
      of signals currently being blocked from delivery.  Signal i is blocked
      if the i-th bit in mask is 1, as specified with the macro sigmask(i).

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

      Use sigsetmask() to set the mask absolutely (see sigsetmask(2)).

 RETURN VALUE    [Toc]    [Back]
      sigblock() returns the previous set of masked signals.

 EXAMPLES    [Toc]    [Back]
      The following call to sigblock() adds the SIGUSR1 and SIGUSR2 signals
      to the mask of signals currently blocked for the process:

           long oldmask;

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

 WARNINGS    [Toc]    [Back]
      Do not use sigblock() in conjunction with the facilities described
      under sigset(3C).

    Obsolescent Interfaces    [Toc]    [Back]
      sigblock() is to be obsoleted at a future date.

 APPLICATION USAGE    [Toc]    [Back]
    Threads Considerations
      Since each thread maintains its own blocked signal mask, sigblock()
      modifies only the calling thread's blocked signal mask.

      For more information regarding signals and threads, refer to
      signal(5).

    LP64 Programs    [Toc]    [Back]
      sigblock() accepts and returns long (64 bit) values.  However, as for
      ILP32 programs, sigblock() supports signals numbered 1 through 32.
      The upper 32 bits of the mask argument are ignored.  Also, the upper
      32 bits of the returned mask have no meaning.




 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 sigblock(2)                                                     sigblock(2)
                               TO BE OBSOLETED



 AUTHOR    [Toc]    [Back]
      sigblock() was developed by the University of California, Berkeley.

 SEE ALSO    [Toc]    [Back]
      kill(2), sigprocmask(2), sigsetmask(2), sigvector(2), signal(5).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
sigblock IRIX block signals from delivery to process (4.3BSD)
rmvb Tru64 STREAMS: Removes a message block from a message block
ssignal IRIX software signals
sigpending FreeBSD get pending signals
sigpending NetBSD get pending signals
signal IRIX base signals
sigwait FreeBSD select a set of signals
sigpending OpenBSD get pending signals
signal HP-UX description of signals
signal Linux list of available signals
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service