tabs
[unix-history] / usr / src / lib / libc / compat-43 / sigblock.2
... / ...
CommitLineData
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.\"
5.\" @(#)sigblock.2 6.2 (Berkeley) %G%
6.\"
7.TH SIGBLOCK 2 ""
8.UC 5
9.SH NAME
10sigblock \- block signals
11.SH SYNOPSIS
12.nf
13.B #include <signal.h>
14
15.B sigblock(mask);
16.B int mask;
17
18.B mask = sigmask(signum)
19.SH DESCRIPTION
20.I Sigblock
21causes the signals specified in
22.I mask
23to be added to the set of signals currently
24being blocked from delivery.
25Signals are blocked if the
26corresding bit in
27.I mask
28is a 1; the macro
29.I sigmask
30is provided to construct the mask for a given
31.IR signum .
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"
39kill(2), sigvec(2), sigsetmask(2)