1.\" Copyright (c) 1983, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)sigsetmask.2	8.1 (Berkeley) 06/02/93
7.\"
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 <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
28corresponding bit in
29.Fa mask
30is a 1; the macro
31.Fn sigmask
32is provided to construct the mask for a given
33.Fa signum .
34.Pp
35The system
36quietly disallows
37.Dv SIGKILL
38or
39.Dv SIGSTOP
40to be blocked.
41.Sh RETURN VALUES
42The previous set of masked signals is returned.
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.
57