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

NAME

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

SYNOPSIS

9       long sgetmask(void);
10
11       long ssetmask(long newmask);
12
13       Note: There are no glibc wrappers for these system calls; see NOTES.
14

DESCRIPTION

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

RETURN VALUE

29       sgetmask() always successfully returns the signal mask.  ssetmask() al‐
30       ways succeeds, and returns the previous signal mask.
31

ERRORS

33       These system calls always succeed.
34

VERSIONS

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

CONFORMING TO

41       These system calls are Linux-specific.
42

NOTES

44       Glibc does not provide wrappers for these obsolete system calls; in the
45       unlikely event that you want to call them, use syscall(2).
46
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.10 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                             2020-08-13                       SGETMASK(2)
Impressum