gtpc2m6rC/C++ Language Support User's Guide

sigismember-See If a Signal Is a Member of a Signal Set

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:

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