1SGETMASK(2)                Linux Programmer's Manual               SGETMASK(2)
2
3
4

NAME

6       sgetmask, ssetmask - manipulation of signal mask (obsolete)
7

SYNOPSIS

9       #include <sys/syscall.h>      /* Definition of SYS_* constants */
10       #include <unistd.h>
11
12       long syscall(SYS_sgetmask, void);
13       long syscall(SYS_ssetmask, long newmask);
14
15       Note: glibc provides no wrappers for these functions, necessitating the
16       use of syscall(2).
17

DESCRIPTION

19       These system calls are obsolete.  Do not use them;  use  sigprocmask(2)
20       instead.
21
22       sgetmask() returns the signal mask of the calling process.
23
24       ssetmask()  sets  the  signal  mask of the calling process to the value
25       given in newmask.  The previous signal mask is returned.
26
27       The signal masks dealt with by these two system  calls  are  plain  bit
28       masks  (unlike  the sigset_t used by sigprocmask(2)); use sigmask(3) to
29       create and inspect these masks.
30

RETURN VALUE

32       sgetmask() always successfully returns the signal mask.  ssetmask() al‐
33       ways succeeds, and returns the previous signal mask.
34

ERRORS

36       These system calls always succeed.
37

VERSIONS

39       Since Linux 3.16, support for these system calls is optional, depending
40       on whether the kernel was built with  the  CONFIG_SGETMASK_SYSCALL  op‐
41       tion.
42

CONFORMING TO

44       These system calls are Linux-specific.
45

NOTES

47       These system calls are unaware of signal numbers greater than 31 (i.e.,
48       real-time signals).
49
50       These system calls do not exist on x86-64.
51
52       It is not possible to block SIGSTOP or SIGKILL.
53

SEE ALSO

55       sigprocmask(2), signal(7)
56

COLOPHON

58       This page is part of release 5.12 of the Linux  man-pages  project.   A
59       description  of  the project, information about reporting bugs, and the
60       latest    version    of    this    page,    can     be     found     at
61       https://www.kernel.org/doc/man-pages/.
62
63
64
65Linux                             2021-03-22                       SGETMASK(2)
Impressum