sigandset

Name

sigandset -- build a new signal set by combining the two input sets using logical AND

Synopsis

#include <signal.h>

int sigandset(sigset_t * set, const sigset_t * left, const sigset_t * right);

Description

The sigandset() function shall combine the two signal sets referenced by left and right, using a logical AND operation, and shall place the result in the location referenced by set, The resulting signal set shall contain only signals that are in both the set referenced by left and the set referenced by right.

Applications shall call sigemptyset() or sigfillset() at least once for each object of type sigset_t to initialize it. If an uninitialized or NULL object is passed to sigandset(), the results are undefined.

Return Value

sigandset() returns 0. There are no defined error returns.

See Also

sigorset()