sigemptyset()

initialize signal set to be empty 

Function


SYNOPSIS

#include <signal.h>

int sigemptyset(sigset_t *set);


DESCRIPTION

The sigemptyset() 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).

sigemptyset() initializes the signal set that set points to exclude all signals that the system defines.

Applications call either sigemptyset() or sigfillset() at least once for each object of type sigset_t prior to any other use of that object. If such an object is not initialized in this way, the results are not defined.


PARAMETERS

set 

Points to a signal set to empty.


RETURN VALUES

If successful, sigemptyset() returns a value of zero. On failure, it returns a value of -1 and sets errno to one of the following values:

EFAULT 

set is an invalid pointer.


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

Functions:
sigaction(), sigaddset(), sigdelset(), sigfillset(), sigismember()


PTC MKS Toolkit 10.4 Documentation Build 39.