1sgetmask(2)                   System Calls Manual                  sgetmask(2)
2
3
4

NAME

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

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <sys/syscall.h>      /* Definition of SYS_* constants */
13       #include <unistd.h>
14
15       [[deprecated]] long syscall(SYS_sgetmask, void);
16       [[deprecated]] long syscall(SYS_ssetmask, long newmask);
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

STANDARDS

39       Linux.
40

HISTORY

42       Since Linux 3.16, support for these system calls is optional, depending
43       on  whether  the  kernel was built with the CONFIG_SGETMASK_SYSCALL op‐
44       tion.
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
57
58
59Linux man-pages 6.04              2023-03-30                       sgetmask(2)
Impressum