sigismember()

test if signal is a member of a signal set 

Function


SYNOPSIS

#include <signal.h>

int sigismember(const sigset_t *set, int signo);


DESCRIPTION

The sigismember() function manipulates sets of signals. It operates on data objects that the application addresses. It does not operate on any set of signals known to the system (such as the set blocked from delivery to a process or the set pending for a process).

sigismember() tests whether the signal specified by the value of signo is a member of the set that set points to.


PARAMETERS

set 

Points to a signal set.

signo 

Is the signal that sigismember() tests for membership.


RETURN VALUES

sigismember() returns a value of 1 if the specified signal is a member of the specified set. If the signal is not a member of the specified set, sigismember() returns zero. On failure, sigismember() returns -1 and sets errno to:

EFAULT 

set is an invalid pointer.

EINVAL 

The value of signo is an invalid or unsupported signal number.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

api_intro

Functions:
sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), signal()


PTC MKS Toolkit 10.4 Documentation Build 39.