⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscalls_103.html

📁 Linux系统调用
💻 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://personal.xfol.com/%7erezaie/syscall/syscalls_102.html">previous</A>, <A HREF="syscalls_104.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_104.html">next</A> section.<P>
<H2><A NAME="SEC103" HREF="syscalls_toc.html#SEC103" tppabs="http://personal.xfol.com/%7erezaie/syscall/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 &#38;= ~<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://personal.xfol.com/%7erezaie/syscall/syscalls_102.html">previous</A>, <A HREF="syscalls_104.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_104.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -