Commit | Line | Data |
---|---|---|
931b8415 | 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
88b3ccf2 | 2 | .\" All rights reserved. |
d35f9a62 | 3 | .\" |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
88b3ccf2 | 5 | .\" |
931b8415 | 6 | .\" @(#)sigblock.2 6.7 (Berkeley) %G% |
d35f9a62 | 7 | .\" |
931b8415 CL |
8 | .Dd |
9 | .Dt SIGBLOCK 2 | |
10 | .Os BSD 4.2 | |
11 | .Sh NAME | |
12 | .Nm sigblock | |
13 | .Nd block signals | |
14 | .Sh SYNOPSIS | |
15 | .Fd #include <sys/signal.h> | |
16 | .Ft int | |
17 | .Fn sigblock "int mask" | |
18 | .Ft int | |
19 | .Fn sigmask signum | |
20 | .Sh DESCRIPTION | |
21 | .Bf -symbolic | |
22 | This interface is made obsolete by: | |
23 | .Ef | |
24 | .Xr sigprocmask 2 . | |
25 | .Pp | |
26 | .Fn Sigblock | |
27 | adds the signals specified in | |
28 | .Fa mask | |
29 | to the set of signals currently | |
fa6ed5be MK |
30 | being blocked from delivery. |
31 | Signals are blocked if the | |
18d4134b | 32 | corresponding bit in |
931b8415 | 33 | .Fa mask |
fa6ed5be | 34 | is a 1; the macro |
931b8415 | 35 | .Fn sigmask |
fa6ed5be | 36 | is provided to construct the mask for a given |
931b8415 CL |
37 | .Fa signum . |
38 | .Pp | |
39 | It is not possible to block | |
40 | .Dv SIGKILL | |
41 | or | |
42 | .Dv SIGSTOP ; | |
43 | this restriction is silently | |
d35f9a62 | 44 | imposed by the system. |
931b8415 | 45 | .Sh RETURN VALUES |
d35f9a62 | 46 | The previous set of masked signals is returned. |
931b8415 CL |
47 | .Sh SEE ALSO |
48 | .Xr kill 2 , | |
49 | .Xr sigprocmask 2 , | |
50 | .Xr sigaction 2 , | |
51 | .Xr sigsetmask 2 , | |
52 | .Xr sigsetops 3 | |
53 | .Sh HISTORY | |
54 | The | |
55 | .Nm | |
56 | function call appeared in | |
57 | .Bx 4.2 | |
58 | and has been deprecated. |