'\"macro stdmacro
.if n .pH g2.sigsetmask @(#)sigsetmask	40.7 of 9/18/89
.\" Copyright (c) 1983 Regents of the University of California.
.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
.\"
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.nr X
.if \nX=0 .ds x} sigsetmask 3 "BSD Compatibility Package" "\&"
.if \nX=1 .ds x} sigsetmask 3 "BSD Compatibility Package"
.if \nX=2 .ds x} sigsetmask 3 "" "\&"
.if \nX=3 .ds x} sigsetmask "" "" "\&"
.TH \*(x}
.SH NAME
\f4sigsetmask\f1 \- set current signal mask
.SH SYNOPSIS
\f4cc \f1[ \f2flag\f1... ] \f2file\f1 ... \f4\-lucb\f1
.P
\f4#include <signal.h>\f1
.P
.nf
\f4sigsetmask(mask);\f1
\f4int mask;\f1
.fi
.P
\f4#define sigmask(signum)\f1
.SH DESCRIPTION
.P
\f4sigsetmask\f1
sets the current signal mask (those signals
that are blocked from delivery).  Signals are blocked if the corresponding
bit in
.I mask
is a 1; the macro
\f4sigmask\f1
is provided to construct the mask for a given
.IR signum .
.P
The system quietly disallows
\f4SIGKILL\f1,
\f4SIGSTOP\f1,
or
\f4SIGCONT\fP
from being blocked.
.SH "RETURN VALUE"
.P
The previous set of masked signals is returned.
.SH "SEE ALSO"
\f4sigblock\fP(3),
\f4sigpause\fP(3),
\f4sigvec\fP(3),
\f4signal\fP(3)
.P
\f4kill\fP(2),
\f4signal\fP(2)
in the \f2Programmer's Reference Manual\f1.
