tabs
[unix-history] / usr / src / lib / libc / compat-43 / sigblock.2
CommitLineData
d35f9a62
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
fa6ed5be 5.\" @(#)sigblock.2 6.2 (Berkeley) %G%
d35f9a62 6.\"
19165f3e 7.TH SIGBLOCK 2 ""
d35f9a62
KM
8.UC 5
9.SH NAME
10sigblock \- block signals
11.SH SYNOPSIS
12.nf
fa6ed5be
MK
13.B #include <signal.h>
14
d35f9a62
KM
15.B sigblock(mask);
16.B int mask;
fa6ed5be
MK
17
18.B mask = sigmask(signum)
d35f9a62
KM
19.SH DESCRIPTION
20.I Sigblock
21causes the signals specified in
22.I mask
23to be added to the set of signals currently
fa6ed5be
MK
24being blocked from delivery.
25Signals are blocked if the
26corresding bit in
d35f9a62 27.I mask
fa6ed5be
MK
28is a 1; the macro
29.I sigmask
30is provided to construct the mask for a given
31.IR signum .
d35f9a62
KM
32.PP
33It is not possible to block SIGKILL,
34SIGSTOP, or SIGCONT; this restriction is silently
35imposed by the system.
36.SH "RETURN VALUE
37The previous set of masked signals is returned.
38.SH "SEE ALSO"
fa6ed5be 39kill(2), sigvec(2), sigsetmask(2)