OSDN Git Service

6ae1f53753e93d5c706eb2321126ad99f764d9da
[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-02-25 "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 CONFORMING TO
67 These system calls are Linux-specific.
68 .SH NOTES
69 Glibc does not provide wrappers for these obsolete system calls;
70 in the unlikely event that you want to call them, use
71 .BR syscall (2).
72
73 These system calls are unaware of signal numbers greater than 31
74 (i.e., real-time signals).
75
76 These system calls do not exist on x86-64.
77
78 It is not possible to block
79 .B SIGSTOP
80 or
81 .BR SIGKILL .
82 .SH SEE ALSO
83 .BR sigprocmask (2),
84 .BR signal (7)
85 .SH COLOPHON
86 This page is part of release 3.64 of the Linux
87 .I man-pages
88 project.
89 A description of the project,
90 and information about reporting bugs,
91 can be found at
92 \%http://www.kernel.org/doc/man\-pages/.