June 2, 1993
sigsetmask, sigblock - manipulate current signal mask
.In signal.h int
sigsetmask int maskint
sigblock int maskint
sigmask int signum
.Bf -symbolic This interface is made obsolete by:
sigsetmaskfunction sets the current signal mask to the specified mask. Signals are blocked from delivery if the corresponding bit in mask is a 1. The
sigblockfunction adds the signals in the specified mask to the current signal mask, rather than overwriting it as
sigsetmaskdoes. The macro
sigmaskis provided to construct the mask for a given signum.
The system quietly disallows
SIGSTOPto be blocked.
sigsetmaskfunctions return the previous set of masked signals.
sigblockfunctions first appeared in BSD 4.2 and have been deprecated.