1 .\" Copyright (c) 2007 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH SGETMASK 2 2021-03-22 "Linux" "Linux Programmer's Manual"
27 sgetmask, ssetmask \- manipulation of signal mask (obsolete)
30 .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
31 .B #include <unistd.h>
33 .B "long syscall(SYS_sgetmask, void);"
34 .BI "long syscall(SYS_ssetmask, long " newmask );
38 glibc provides no wrappers for these functions,
39 necessitating the use of
42 These system calls are obsolete.
43 .IR "Do not use them" ;
49 returns the signal mask of the calling process.
52 sets the signal mask of the calling process to the value given in
54 The previous signal mask is returned.
56 The signal masks dealt with by these two system calls
57 are plain bit masks (unlike the
63 to create and inspect these masks.
66 always successfully returns the signal mask.
68 always succeeds, and returns the previous signal mask.
70 These system calls always succeed.
73 .\" f6187769dae48234f3877df3c4d99294cc2254fa
74 support for these system calls is optional,
75 depending on whether the kernel was built with the
76 .B CONFIG_SGETMASK_SYSCALL
79 These system calls are Linux-specific.
81 These system calls are unaware of signal numbers greater than 31
82 (i.e., real-time signals).
84 These system calls do not exist on x86-64.
86 It is not possible to block