1 .\" Copyright (c) 2007 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH SGETMASK 2 2022-09-09 "Linux man-pages (unreleased)"
7 sgetmask, ssetmask \- manipulation of signal mask (obsolete)
10 .RI ( libc ", " \-lc )
13 .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
14 .B #include <unistd.h>
16 .B [[deprecated]] long syscall(SYS_sgetmask, void);
17 .BI "[[deprecated]] long syscall(SYS_ssetmask, long " newmask );
20 These system calls are obsolete.
21 .IR "Do not use them" ;
27 returns the signal mask of the calling process.
30 sets the signal mask of the calling process to the value given in
32 The previous signal mask is returned.
34 The signal masks dealt with by these two system calls
35 are plain bit masks (unlike the
41 to create and inspect these masks.
44 always successfully returns the signal mask.
46 always succeeds, and returns the previous signal mask.
48 These system calls always succeed.
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
57 These system calls are Linux-specific.
59 These system calls are unaware of signal numbers greater than 31
60 (i.e., real-time signals).
62 These system calls do not exist on x86-64.
64 It is not possible to block