]>
Commit | Line | Data |
---|---|---|
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 |
7 | sgetmask, ssetmask \- manipulation of signal mask (obsolete) | |
c399eb00 AC |
8 | .SH LIBRARY |
9 | Standard 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 |
20 | These system calls are obsolete. | |
21 | .IR "Do not use them" ; | |
22 | use | |
23 | .BR sigprocmask (2) | |
24 | instead. | |
efeece04 | 25 | .PP |
c48ef83f MK |
26 | .BR sgetmask () |
27 | returns the signal mask of the calling process. | |
efeece04 | 28 | .PP |
c48ef83f | 29 | .BR ssetmask () |
0fa2491f | 30 | sets the signal mask of the calling process to the value given in |
c48ef83f MK |
31 | .IR newmask . |
32 | The previous signal mask is returned. | |
efeece04 | 33 | .PP |
c48ef83f MK |
34 | The signal masks dealt with by these two system calls |
35 | are plain bit masks (unlike the | |
36 | .I sigset_t | |
37 | used by | |
38 | .BR sigprocmask (2)); | |
0fa2491f | 39 | use |
c48ef83f | 40 | .BR sigmask (3) |
0fa2491f | 41 | to create and inspect these masks. |
c48ef83f MK |
42 | .SH RETURN VALUE |
43 | .BR sgetmask () | |
44 | always successfully returns the signal mask. | |
45 | .BR ssetmask () | |
46 | always succeeds, and returns the previous signal mask. | |
47 | .SH ERRORS | |
48 | These system calls always succeed. | |
a9adf515 MK |
49 | .SH VERSIONS |
50 | Since Linux 3.16, | |
51 | .\" f6187769dae48234f3877df3c4d99294cc2254fa | |
52 | support for these system calls is optional, | |
53 | depending on whether the kernel was built with the | |
54 | .B CONFIG_SGETMASK_SYSCALL | |
55 | option. | |
3113c7f3 | 56 | .SH STANDARDS |
8382f16d | 57 | These system calls are Linux-specific. |
c48ef83f | 58 | .SH NOTES |
c48ef83f MK |
59 | These system calls are unaware of signal numbers greater than 31 |
60 | (i.e., real-time signals). | |
efeece04 | 61 | .PP |
cb012d1d | 62 | These system calls do not exist on x86-64. |
efeece04 | 63 | .PP |
c48ef83f MK |
64 | It is not possible to block |
65 | .B SIGSTOP | |
66 | or | |
67 | .BR SIGKILL . | |
68 | .SH SEE ALSO | |
0fa2491f | 69 | .BR sigprocmask (2), |
c48ef83f | 70 | .BR signal (7) |