]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/sgetmask.2
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man2 / sgetmask.2
CommitLineData
c11b1abf 1.\" Copyright (c) 2007 by Michael Kerrisk <mtk.manpages@gmail.com>
c48ef83f 2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
c48ef83f 4.\"
4c1c5274 5.TH sgetmask 2 (date) "Linux man-pages (unreleased)"
c48ef83f
MK
6.SH NAME
7sgetmask, ssetmask \- manipulation of signal mask (obsolete)
c399eb00
AC
8.SH LIBRARY
9Standard C library
8fc3b2cf 10.RI ( libc ", " \-lc )
c48ef83f 11.SH SYNOPSIS
511bb71b 12.nf
1cd36d9d
AC
13.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
14.B #include <unistd.h>
15.PP
4d48d43b
AC
16.B [[deprecated]] long syscall(SYS_sgetmask, void);
17.BI "[[deprecated]] long syscall(SYS_ssetmask, long " newmask );
511bb71b 18.fi
c48ef83f
MK
19.SH DESCRIPTION
20These system calls are obsolete.
21.IR "Do not use them" ;
22use
23.BR sigprocmask (2)
24instead.
efeece04 25.PP
c48ef83f
MK
26.BR sgetmask ()
27returns the signal mask of the calling process.
efeece04 28.PP
c48ef83f 29.BR ssetmask ()
0fa2491f 30sets the signal mask of the calling process to the value given in
c48ef83f
MK
31.IR newmask .
32The previous signal mask is returned.
efeece04 33.PP
c48ef83f
MK
34The signal masks dealt with by these two system calls
35are plain bit masks (unlike the
36.I sigset_t
37used by
38.BR sigprocmask (2));
0fa2491f 39use
c48ef83f 40.BR sigmask (3)
0fa2491f 41to create and inspect these masks.
c48ef83f
MK
42.SH RETURN VALUE
43.BR sgetmask ()
44always successfully returns the signal mask.
45.BR ssetmask ()
46always succeeds, and returns the previous signal mask.
47.SH ERRORS
48These system calls always succeed.
a9adf515
MK
49.SH VERSIONS
50Since Linux 3.16,
51.\" f6187769dae48234f3877df3c4d99294cc2254fa
52support for these system calls is optional,
53depending on whether the kernel was built with the
54.B CONFIG_SGETMASK_SYSCALL
55option.
3113c7f3 56.SH STANDARDS
8382f16d 57These system calls are Linux-specific.
c48ef83f 58.SH NOTES
c48ef83f
MK
59These system calls are unaware of signal numbers greater than 31
60(i.e., real-time signals).
efeece04 61.PP
cb012d1d 62These system calls do not exist on x86-64.
efeece04 63.PP
c48ef83f
MK
64It is not possible to block
65.B SIGSTOP
66or
67.BR SIGKILL .
68.SH SEE ALSO
0fa2491f 69.BR sigprocmask (2),
c48ef83f 70.BR signal (7)