50 lines
1.8 KiB
HTML
50 lines
1.8 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - sigprocmask</TITLE>
|
|
<P>Go to the <A HREF="syscalls_102.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_102.html">previous</A>, <A HREF="syscalls_104.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_104.html">next</A> section.<P>
|
|
<H2><A NAME="SEC103" HREF="syscalls_toc.html#SEC103" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC103">sigprocmask</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int sigprocmask(int <VAR>how</VAR>, const sigset_t *<VAR>set</VAR>, sigset_t
|
|
*<VAR>oset</VAR>);</CODE>
|
|
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>how</VAR>: [in] what to do whit the signal set.
|
|
<P>
|
|
<VAR>set</VAR>: [in] the signal set.
|
|
<P>
|
|
<VAR>oset</VAR>: [out] the previous signal mask.
|
|
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Modifies the signal mask. The parameter <VAR>how</VAR> can take one of the
|
|
following values:
|
|
<P>
|
|
<DL COMPACT>
|
|
<DT><CODE>SIG_BLOCK</CODE>
|
|
<DD><CODE>mask |= <VAR>set</VAR></CODE>. Adds new signals to the set of blocked
|
|
signals.
|
|
<P>
|
|
<DT><CODE>SIG_UNBLOCK</CODE>
|
|
<DD><CODE>mask &= ~<VAR>set</VAR></CODE>. Removes the signals from he set of blocked
|
|
signals.
|
|
<P>
|
|
<DT><CODE>SIG_SETMASK</CODE>
|
|
<DD><CODE>mask = <VAR>set</VAR></CODE>. <VAR>set</VAR> becomes the new signal mask.
|
|
</DL>
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success, returns zero. On error, returns -1 and sets <CODE>errno</CODE> to
|
|
one of the following values:
|
|
<P>
|
|
<UL>
|
|
<LI><CODE>EINVAL</CODE>: <VAR>how</VAR> has an invalid value.
|
|
<LI><CODE>EFAULT</CODE>.
|
|
</UL>
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_102.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_102.html">previous</A>, <A HREF="syscalls_104.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_104.html">next</A> section.<P>
|