gtpc2m6r | C/C++ Language Support User's Guide |
This macro determines whether a specific signal is a member of a signal
set. It is one of several macros that manage or query signal
sets.
Format
#include <signal.h>
int sigismember(sigset_t *set,
int signo);
- set
- A pointer to the signal set to be queried. The signal set is of the
sigset_t type.
- signo
- One of the signals defined in the signal.h header file
that corresponds to a specific signal to be queried. See Table 13 for a list of supported signals.
Normal Return
One of the following:
- If the signal specified by the signo parameter is a member of
the signal set pointed to by the set parameter, the
sigismember macro returns a value of 1.
- If the signal specified by the signo parameter is not a member
of the signal set, the sigismember macro returns a value of
0.
Error Return
If an error occurs, the sigismember macro returns a value of
-1 and sets errno to the following:
- EINVAL
- The value specified by the signo parameter is not a valid and
supported signal number.
Programming Considerations
None.
Examples
See sigpending-Examine Pending Signals for an example of the sigismember macro.
Related Information