1SIGADDSET(P)               POSIX Programmer's Manual              SIGADDSET(P)
2
3
4

NAME

6       sigaddset - add a signal to a signal set
7

SYNOPSIS

9       #include <signal.h>
10
11       int sigaddset(sigset_t *set, int signo);
12
13

DESCRIPTION

15       The  sigaddset()  function  adds the individual signal specified by the
16       signo to the signal set pointed to by set.
17
18       Applications shall call either sigemptyset() or sigfillset()  at  least
19       once  for  each  object of type sigset_t prior to any other use of that
20       object. If such an object is not initialized in this way, but is  none‐
21       theless  supplied  as  an  argument to any of pthread_sigmask(), sigac‐
22       tion(), sigaddset(), sigdelset(), sigismember(), sigpending(), sigproc‐
23       mask(),  sigsuspend(), sigtimedwait(), sigwait(), or sigwaitinfo(), the
24       results are undefined.
25

RETURN VALUE

27       Upon successful completion, sigaddset() shall return 0;  otherwise,  it
28       shall return -1 and set errno to indicate the error.
29

ERRORS

31       The sigaddset() function may fail if:
32
33       EINVAL The  value  of  the  signo argument is an invalid or unsupported
34              signal number.
35
36
37       The following sections are informative.
38

EXAMPLES

40       None.
41

APPLICATION USAGE

43       None.
44

RATIONALE

46       None.
47

FUTURE DIRECTIONS

49       None.
50

SEE ALSO

52       Signal Concepts , sigaction() ,  sigdelset()  ,  sigemptyset()  ,  sig‐
53       fillset() , sigismember() , sigpending() , sigprocmask() , sigsuspend()
54       , the Base Definitions volume of IEEE Std 1003.1-2001, <signal.h>
55
57       Portions of this text are reprinted and reproduced in  electronic  form
58       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
59       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
60       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
61       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
62       event of any discrepancy between this version and the original IEEE and
63       The Open Group Standard, the original IEEE and The Open Group  Standard
64       is  the  referee document. The original Standard can be obtained online
65       at http://www.opengroup.org/unix/online.html .
66
67
68
69IEEE/The Open Group                  2003                         SIGADDSET(P)
Impressum