SIGBLOCK(2) Linux Programmer's Manual SIGBLOCK(2)
NAME
sigblock, siggetmask, sigsetmask, sigmask - manipulate the signal(2,7) mask
SYNOPSIS
#include <signal.h>
int sigblock(int mask);
int siggetmask(void);
int sigsetmask(int mask);
int sigmask(int signum);
DESCRIPTION
This interface is made obsolete by sigprocmask(2).
The sigblock system call adds the signals specified in(1,8) mask to the set(7,n,1 builtins)
of signals currently being blocked from delivery.
The sigsetmask system call replaces the set(7,n,1 builtins) of blocked signals totally
with a new set(7,n,1 builtins) specified in(1,8) mask. Signals are blocked if(3,n) the corre-
sponding bit in(1,8) mask is a 1.
The current set(7,n,1 builtins) of blocked signals can be obtained using siggetmask.
The sigmask macro is provided to construct the mask for a given signum.
RETURN VALUE
siggetmask returns the current set(7,n,1 builtins) of masked signals.
sigsetmask and sigblock return the previous set(7,n,1 builtins) of masked signals.
NOTES
Prototypes for these functions are only available if(3,n) _BSD_SOURCE is
defined before the inclusion of any system header file.
It is not possible to block SIGKILL or SIGSTOP - this restriction is
silently imposed by the system.
CONFORMING TO
4.4BSD. These function calls appeared in(1,8) BSD 4.3 and are deprecated.
Use the POSIX signal(2,7) facilities for new programs.
SEE ALSO
kill(1,2,1 builtins)(2), sigprocmask(2), signal(2,7)(7)
Linux 1.3 1995-08-31 SIGBLOCK(2)