new copyright notice
[unix-history] / usr / src / lib / libc / compat-43 / sigblock.2
CommitLineData
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
11sigblock \- 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
22causes the signals specified in
23.I mask
24to be added to the set of signals currently
fa6ed5be
MK
25being blocked from delivery.
26Signals are blocked if the
18d4134b 27corresponding bit in
d35f9a62 28.I mask
fa6ed5be
MK
29is a 1; the macro
30.I sigmask
31is provided to construct the mask for a given
32.IR signum .
d35f9a62
KM
33.PP
34It is not possible to block SIGKILL,
35SIGSTOP, or SIGCONT; this restriction is silently
36imposed by the system.
37.SH "RETURN VALUE
38The previous set of masked signals is returned.
39.SH "SEE ALSO"
fa6ed5be 40kill(2), sigvec(2), sigsetmask(2)