Commit | Line | Data |
---|---|---|
d35f9a62 KM |
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 | .\" | |
fa6ed5be | 5 | .\" @(#)sigblock.2 6.2 (Berkeley) %G% |
d35f9a62 | 6 | .\" |
19165f3e | 7 | .TH SIGBLOCK 2 "" |
d35f9a62 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | sigblock \- block signals | |
11 | .SH SYNOPSIS | |
12 | .nf | |
fa6ed5be MK |
13 | .B #include <signal.h> |
14 | ||
d35f9a62 KM |
15 | .B sigblock(mask); |
16 | .B int mask; | |
fa6ed5be MK |
17 | |
18 | .B mask = sigmask(signum) | |
d35f9a62 KM |
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 | |
fa6ed5be MK |
24 | being blocked from delivery. |
25 | Signals are blocked if the | |
26 | corresding bit in | |
d35f9a62 | 27 | .I mask |
fa6ed5be MK |
28 | is a 1; the macro |
29 | .I sigmask | |
30 | is provided to construct the mask for a given | |
31 | .IR signum . | |
d35f9a62 KM |
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" | |
fa6ed5be | 39 | kill(2), sigvec(2), sigsetmask(2) |