man page macro and text revisions (-mdoc version 3)
[unix-history] / usr / src / lib / libc / compat-43 / sigblock.2
CommitLineData
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
22This interface is made obsolete by:
23.Ef
24.Xr sigprocmask 2 .
25.Pp
26.Fn Sigblock
27adds the signals specified in
28.Fa mask
29to the set of signals currently
fa6ed5be
MK
30being blocked from delivery.
31Signals are blocked if the
18d4134b 32corresponding bit in
931b8415 33.Fa mask
fa6ed5be 34is a 1; the macro
931b8415 35.Fn sigmask
fa6ed5be 36is provided to construct the mask for a given
931b8415
CL
37.Fa signum .
38.Pp
39It is not possible to block
40.Dv SIGKILL
41or
42.Dv SIGSTOP ;
43this restriction is silently
d35f9a62 44imposed by the system.
931b8415 45.Sh RETURN VALUES
d35f9a62 46The 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
54The
55.Nm
56function call appeared in
57.Bx 4.2
58and has been deprecated.