my previous version was wrong; this one is right
[unix-history] / usr / src / lib / libc / compat-43 / sigsetmask.2
CommitLineData
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
21This interface is made obsoleted by:
22.Ef
23.Xr sigprocmask 2 .
24.Pp
25.Fn Sigsetmask
26sets the current signal mask
27Signals are blocked from delivery if the
c1572d77 28corresponding bit in
931b8415 29.Fa mask
c1572d77 30is a 1; the macro
931b8415 31.Fn sigmask
c1572d77 32is provided to construct the mask for a given
931b8415
CL
33.Fa signum .
34.Pp
9b494949 35The system
931b8415
CL
36quietly disallows
37.Dv SIGKILL
38or
39.Dv SIGSTOP
40to be blocked.
41.Sh RETURN VALUES
9b494949 42The 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
52The
53.Nm
54function call appeared in
55.Bx 4.2
56and has been deprecated.