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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       sigaddset - add a signal to a signal set
13

SYNOPSIS

15       #include <signal.h>
16
17       int sigaddset(sigset_t *set, int signo);
18
19

DESCRIPTION

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

RETURN VALUE

33       Upon  successful  completion, sigaddset() shall return 0; otherwise, it
34       shall return -1 and set errno to indicate the error.
35

ERRORS

37       The sigaddset() function may fail if:
38
39       EINVAL The value of the signo argument is  an  invalid  or  unsupported
40              signal number.
41
42
43       The following sections are informative.
44

EXAMPLES

46       None.
47

APPLICATION USAGE

49       None.
50

RATIONALE

52       None.
53

FUTURE DIRECTIONS

55       None.
56

SEE ALSO

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