74 lines
2.1 KiB
HTML
74 lines
2.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>sigprocmask(2)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>sigprocmask(2)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
sigprocmask - manipulate the signal mask
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>#include</STRONG> <STRONG><signal.h></STRONG>
|
|
|
|
<STRONG>int</STRONG> <STRONG>sigprocmask(int</STRONG> <EM>how</EM><STRONG>,</STRONG> <STRONG>const</STRONG> <STRONG>sigset_t</STRONG> <STRONG>*</STRONG><EM>set</EM><STRONG>,</STRONG> <STRONG>sigset_t</STRONG> <STRONG>*</STRONG><EM>oset</EM><STRONG>)</STRONG>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
<STRONG>Sigprocmask()</STRONG> examines or manipulates the signal mask. This mask is the
|
|
set of signals that are currently blocked. The <EM>how</EM> argument determines
|
|
the action that must be performed. In all cases the signal set
|
|
referenced by <EM>oset</EM>, if not <STRONG>NULL</STRONG>, will be used to receive the old signal
|
|
mask. The <EM>set</EM> argument, if not <STRONG>NULL</STRONG>, will be used to set or modify the
|
|
current signal mask.
|
|
|
|
<EM>How</EM> can be one of:
|
|
|
|
<STRONG>SIG_BLOCK</STRONG> Add the signals referenced by <EM>set</EM> to the mask.
|
|
|
|
<STRONG>SIG_UNBLOCK</STRONG> Remove the signals referenced by <EM>set</EM> from the mask.
|
|
|
|
<STRONG>SIG_SETMASK</STRONG> Set the signal mask to the set referenced by <EM>set</EM>.
|
|
|
|
The value of <EM>how</EM> is ignored if <EM>set</EM> is <STRONG>NULL</STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man2/sigaction.2.html">sigaction(2)</A></STRONG>, <STRONG><A HREF="../man2/sigpending.2.html">sigpending(2)</A></STRONG>, <STRONG><A HREF="../man2/sigsuspend.2.html">sigsuspend(2)</A></STRONG>, <STRONG><A HREF="../man3/sigset.3.html">sigset(3)</A></STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>DIAGNOSTICS</H2><PRE>
|
|
Returns <STRONG>0</STRONG> on success and <STRONG>-1</STRONG> on error. The error code is <STRONG>EFAULT</STRONG> for a bad
|
|
<EM>set</EM> or <EM>oset</EM> address, or <STRONG>EINVAL</STRONG> for a bad <EM>how</EM> argument.
|
|
|
|
|
|
</PRE>
|
|
<H2>AUTHOR</H2><PRE>
|
|
Kees J. Bot (kjb@cs.vu.nl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|