]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/sigsetops.3
72aa66683e716aad7fe2c436ab38a9191aa78ee0
[thirdparty/man-pages.git] / man3 / sigsetops.3
1 .\" Copyright (c) 1994 Mike Battersby
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Modified by aeb, 960721
24 .\"
25 .TH SIGSETOPS 3 1994-09-24 "Linux 1.0" "Linux Programmer's Manual"
26
27 .SH NAME
28 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
29 signal set operations.
30
31 .SH SYNOPSIS
32 .B #include <signal.h>
33 .sp 2
34 .BI "int sigemptyset(sigset_t *" set );
35 .sp
36 .BI "int sigfillset(sigset_t *" set );
37 .sp
38 .BI "int sigaddset(sigset_t *" set ", int " signum );
39 .sp
40 .BI "int sigdelset(sigset_t *" set ", int " signum );
41 .sp
42 .BI "int sigismember(const sigset_t *" set ", int " signum );
43
44 .SH DESCRIPTION
45 The
46 .BR sigsetops (3)
47 functions allow the manipulation of POSIX signal sets.
48 .PP
49 .B sigemptyset
50 initializes the signal set given by
51 .I set
52 to empty, with all signals excluded from the set.
53 .PP
54 .B sigfillset
55 initializes
56 .I set
57 to full, including all signals.
58 .PP
59 .B sigaddset
60 and
61 .B sigdelset
62 add and delete respectively signal
63 .I signum
64 from
65 .IR set .
66 .PP
67 .B sigismember
68 tests whether
69 .I signum
70 is a member of
71 .IR set .
72 .SH "RETURN VALUE"
73 .BR sigemptyset ", " sigfillset ", " sigaddset
74 and
75 .B sigdelset
76 return 0 on success and \-1 on error.
77 .PP
78 .B sigismember
79 returns 1 if
80 .I signum
81 is a member of
82 .IR set ,
83 0 if
84 .I signum
85 is not a member, and \-1 on error.
86 .SH ERRORS
87 .TP
88 .B EINVAL
89 .I sig
90 is not a valid signal.
91 .SH "CONFORMING TO"
92 POSIX
93 .SH "SEE ALSO"
94 .BR sigaction (2),
95 .BR sigpending (2),
96 .BR sigprocmask (2),
97 .BR sigsuspend (2)