OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / sgetmask.2
1 '\" t
2 .\" Copyright (c) 2007 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .TH SGETMASK 2  2014-12-31 "Linux" "Linux Programmer's Manual"
27 .SH NAME
28 sgetmask, ssetmask \- manipulation of signal mask (obsolete)
29 .SH SYNOPSIS
30 .B "long sgetmask(void);"
31 .sp
32 .BI "long ssetmask(long " newmask );
33
34 .IR Note :
35 There are no glibc wrappers for these system calls; see NOTES.
36 .SH DESCRIPTION
37 These system calls are obsolete.
38 .IR "Do not use them" ;
39 use
40 .BR sigprocmask (2)
41 instead.
42
43 .BR sgetmask ()
44 returns the signal mask of the calling process.
45
46 .BR ssetmask ()
47 sets the signal mask of the calling process to the value given in
48 .IR newmask .
49 The previous signal mask is returned.
50
51 The signal masks dealt with by these two system calls
52 are plain bit masks (unlike the
53 .I sigset_t
54 used by
55 .BR sigprocmask (2));
56 use
57 .BR sigmask (3)
58 to create and inspect these masks.
59 .SH RETURN VALUE
60 .BR sgetmask ()
61 always successfully returns the signal mask.
62 .BR ssetmask ()
63 always succeeds, and returns the previous signal mask.
64 .SH ERRORS
65 These system calls always succeed.
66 .SH VERSIONS
67 Since Linux 3.16,
68 .\" f6187769dae48234f3877df3c4d99294cc2254fa
69 support for these system calls is optional,
70 depending on whether the kernel was built with the
71 .B CONFIG_SGETMASK_SYSCALL
72 option.
73 .SH CONFORMING TO
74 These system calls are Linux-specific.
75 .SH NOTES
76 Glibc does not provide wrappers for these obsolete system calls;
77 in the unlikely event that you want to call them, use
78 .BR syscall (2).
79
80 These system calls are unaware of signal numbers greater than 31
81 (i.e., real-time signals).
82
83 These system calls do not exist on x86-64.
84
85 It is not possible to block
86 .B SIGSTOP
87 or
88 .BR SIGKILL .
89 .SH SEE ALSO
90 .BR sigprocmask (2),
91 .BR signal (7)
92 .SH COLOPHON
93 This page is part of release 3.79 of the Linux
94 .I man-pages
95 project.
96 A description of the project,
97 information about reporting bugs,
98 and the latest version of this page,
99 can be found at
100 \%http://www.kernel.org/doc/man\-pages/.