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