1sigsetops(3C)            Standard C Library Functions            sigsetops(3C)
2
3
4

NAME

6       sigsetops, sigemptyset, sigfillset, sigaddset, sigdelset, sigismember -
7       manipulate sets of signals
8

SYNOPSIS

10       #include <signal.h>
11
12       int sigemptyset(sigset_t *set);
13
14
15       int sigfillset(sigset_t *set);
16
17
18       int sigaddset(sigset_t *set, int signo);
19
20
21       int sigdelset(sigset_t *set, int signo);
22
23
24       int sigismember(sigset_t *set, int signo);
25
26

DESCRIPTION

28       These functions manipulate sigset_t data types, representing the set of
29       signals supported by the implementation.
30
31
32       The  sigemptyset()  function  initializes  the set pointed to by set to
33       exclude all signals defined by the system.
34
35
36       The sigfillset() function initializes the set  pointed  to  by  set  to
37       include all signals defined by the system.
38
39
40       The  sigaddset()  function  adds the individual signal specified by the
41       value of signo to the set pointed to by set.
42
43
44       The sigdelset() function deletes the individual signal specified by the
45       value of signo from the set pointed to by set.
46
47
48       The  sigismember()  function checks whether the signal specified by the
49       value of signo is a member of the set pointed to by set.
50
51
52       Any object of type sigset_t must  be  initialized  by  applying  either
53       sigemptyset() or sigfillset() before applying any other operation.
54

RETURN VALUES

56       Upon successful completion, the sigismember() function returns 1 if the
57       specified signal is a member of the specified set, or 0 if it is not.
58
59
60       Upon successful completion, the other functions return 0. Otherwise  −1
61       is returned and errno is set to indicate the error.
62

ERRORS

64       The sigaddset(), sigdelset(), and sigismember() functions will fail if:
65
66       EINVAL    The value of the signo argument is not a valid signal number.
67
68
69
70       The sigfillset() function will fail if:
71
72       EFAULT    The set argument specifies an invalid address.
73
74

ATTRIBUTES

76       See attributes(5) for descriptions of the following attributes:
77
78
79
80
81       ┌─────────────────────────────┬─────────────────────────────┐
82       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
83       ├─────────────────────────────┼─────────────────────────────┤
84       │Interface Stability          │Standard                     │
85       ├─────────────────────────────┼─────────────────────────────┤
86       │MT-Level                     │Async-Signal-Safe            │
87       └─────────────────────────────┴─────────────────────────────┘
88

SEE ALSO

90       sigaction(2),   sigpending(2),   sigprocmask(2),   sigsuspend(2),  sig‐
91       nal.h(3HEAD), attributes(5), standards(5)
92
93
94
95SunOS 5.11                        19 Dec 2003                    sigsetops(3C)
Impressum