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