| 1 | .\" Copyright (c) 1983 Regents of the University of California. |
| 2 | .\" All rights reserved. The Berkeley software License Agreement |
| 3 | .\" specifies the terms and conditions for redistribution. |
| 4 | .\" |
| 5 | .\" @(#)sigblock.2 6.2 (Berkeley) %G% |
| 6 | .\" |
| 7 | .TH SIGBLOCK 2 "" |
| 8 | .UC 5 |
| 9 | .SH NAME |
| 10 | sigblock \- block signals |
| 11 | .SH SYNOPSIS |
| 12 | .nf |
| 13 | .B #include <signal.h> |
| 14 | |
| 15 | .B sigblock(mask); |
| 16 | .B int mask; |
| 17 | |
| 18 | .B mask = sigmask(signum) |
| 19 | .SH DESCRIPTION |
| 20 | .I Sigblock |
| 21 | causes the signals specified in |
| 22 | .I mask |
| 23 | to be added to the set of signals currently |
| 24 | being blocked from delivery. |
| 25 | Signals are blocked if the |
| 26 | corresding bit in |
| 27 | .I mask |
| 28 | is a 1; the macro |
| 29 | .I sigmask |
| 30 | is provided to construct the mask for a given |
| 31 | .IR signum . |
| 32 | .PP |
| 33 | It is not possible to block SIGKILL, |
| 34 | SIGSTOP, or SIGCONT; this restriction is silently |
| 35 | imposed by the system. |
| 36 | .SH "RETURN VALUE |
| 37 | The previous set of masked signals is returned. |
| 38 | .SH "SEE ALSO" |
| 39 | kill(2), sigvec(2), sigsetmask(2) |