sigismember

Verifies that a signal is in a signal set.

Library:LibC
Classification:ANSI
Service:Signal Services

Syntax

  #include <signal.h> 
   
  int sigismember (
     const sigset_t   *set,
     int               sig);
  

Parameters

set

(IN) Points to the signal set.

sig

(IN) Points to the signal to test for in the signal set. For a list of signals, see Section 5.1, Standard Signals.

Return Values

If the signal is in the set, returns 1. If the signal is not in the set, returns 0. If an error occurs, returns -1 and sets errno to the following:

Decimal

Constant

Description

9

EINVAL

The value of the sig parameter is invalid or unsupported.

Remarks

You must call either sigemptyset or sigfillset at least once to initialized each object of type sigset_t before calling sigismember or any of the other functions which manage the signal set.

See Also