OSDN Git Service

(split) LDP: Update original to LDP v3.40.
[linuxjm/LDP_man-pages.git] / original / man2 / sgetmask.2
1 '\" t
2 .\" Copyright (c) 2007 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .TH SGETMASK 2  2007-07-05 "Linux" "Linux Programmer's Manual"
25 .SH NAME
26 sgetmask, ssetmask \- manipulation of signal mask (obsolete)
27 .SH SYNOPSIS
28 .B "long sgetmask(void);"
29 .sp
30 .BI "long ssetmask(long " newmask );
31 .SH DESCRIPTION
32 These system calls are obsolete.
33 .IR "Do not use them" ;
34 use
35 .BR sigprocmask (2)
36 instead.
37
38 .BR sgetmask ()
39 returns the signal mask of the calling process.
40
41 .BR ssetmask ()
42 sets the signal mask of the calling process to the value given in
43 .IR newmask .
44 The previous signal mask is returned.
45
46 The signal masks dealt with by these two system calls
47 are plain bit masks (unlike the
48 .I sigset_t
49 used by
50 .BR sigprocmask (2));
51 use
52 .BR sigmask (3)
53 to create and inspect these masks.
54 .SH RETURN VALUE
55 .BR sgetmask ()
56 always successfully returns the signal mask.
57 .BR ssetmask ()
58 always succeeds, and returns the previous signal mask.
59 .SH ERRORS
60 These system calls always succeed.
61 .SH CONFORMING TO
62 These system calls are Linux-specific.
63 .SH NOTES
64 Glibc does not provide wrappers for these system calls; use
65 .BR syscall (2).
66
67 These system calls are unaware of signal numbers greater than 31
68 (i.e., real-time signals).
69
70 It is not possible to block
71 .B SIGSTOP
72 or
73 .BR SIGKILL .
74 .SH SEE ALSO
75 .BR sigprocmask (2),
76 .BR signal (7)