154 lines
3.4 KiB
HTML
154 lines
3.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SGETMASK</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SGETMASK</H1>
|
|
Section: Linux Programmer's Manual (2)<BR>Updated: 2017-09-15<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
sgetmask, ssetmask - manipulation of signal mask (obsolete)
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>long sgetmask(void);</B>
|
|
|
|
<P>
|
|
|
|
<B>long ssetmask(long </B><I>newmask</I><B>);</B>
|
|
|
|
<P>
|
|
|
|
<I>Note</I>:
|
|
|
|
There are no glibc wrappers for these system calls; see NOTES.
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
These system calls are obsolete.
|
|
<I>Do not use them</I>;
|
|
|
|
use
|
|
<B><A HREF="/cgi-bin/man/man2html?2+sigprocmask">sigprocmask</A></B>(2)
|
|
|
|
instead.
|
|
<P>
|
|
|
|
<B>sgetmask</B>()
|
|
|
|
returns the signal mask of the calling process.
|
|
<P>
|
|
|
|
<B>ssetmask</B>()
|
|
|
|
sets the signal mask of the calling process to the value given in
|
|
<I>newmask</I>.
|
|
|
|
The previous signal mask is returned.
|
|
<P>
|
|
|
|
The signal masks dealt with by these two system calls
|
|
are plain bit masks (unlike the
|
|
<I>sigset_t</I>
|
|
|
|
used by
|
|
<B><A HREF="/cgi-bin/man/man2html?2+sigprocmask">sigprocmask</A></B>(2));
|
|
|
|
use
|
|
<B><A HREF="/cgi-bin/man/man2html?3+sigmask">sigmask</A></B>(3)
|
|
|
|
to create and inspect these masks.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
<B>sgetmask</B>()
|
|
|
|
always successfully returns the signal mask.
|
|
<B>ssetmask</B>()
|
|
|
|
always succeeds, and returns the previous signal mask.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ERRORS</H2>
|
|
|
|
These system calls always succeed.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>VERSIONS</H2>
|
|
|
|
Since Linux 3.16,
|
|
|
|
support for these system calls is optional,
|
|
depending on whether the kernel was built with the
|
|
<B>CONFIG_SGETMASK_SYSCALL</B>
|
|
|
|
option.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
These system calls are Linux-specific.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
Glibc does not provide wrappers for these obsolete system calls;
|
|
in the unlikely event that you want to call them, use
|
|
<B><A HREF="/cgi-bin/man/man2html?2+syscall">syscall</A></B>(2).
|
|
|
|
<P>
|
|
|
|
These system calls are unaware of signal numbers greater than 31
|
|
(i.e., real-time signals).
|
|
<P>
|
|
|
|
These system calls do not exist on x86-64.
|
|
<P>
|
|
|
|
It is not possible to block
|
|
<B>SIGSTOP</B>
|
|
|
|
or
|
|
<B>SIGKILL</B>.
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+sigprocmask">sigprocmask</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></B>(7)
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">ERRORS</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">VERSIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">CONFORMING TO</A><DD>
|
|
<DT id="8"><A HREF="#lbAI">NOTES</A><DD>
|
|
<DT id="9"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="10"><A HREF="#lbAK">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:34 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|