sigdelset [ MPE/iX Developer's Kit Reference Manual Volume I ] MPE/iX 5.0 Documentation
MPE/iX Developer's Kit Reference Manual Volume I
sigdelset
Deletes a signal from a signal set.
Syntax
#include <signal.h>
int sigdelset (sigset_t *set, int sig);
Parameters
set A pointer to a structure of type sigset_t containing a set of
signals from which sig is to be deleted.
sig The signal number of the signal to delete from set. Valid
signals are described in Table 3-5 .
Return Values
0 Success.
-1 An error occurred. The signal is not deleted, and errno is
set to indicate the error condition.
Description
The sigdelset() function deletes the signal sig from the set of signals
specified in the structure pointed to by set.
The structure of type sigset_t pointed to by set must be initialized by
sigemptyset() or sigfillset() prior to being used by sigdelset();
otherwise, the results are undefined.
Implementation Considerations
Refer to the EFAULT error description below.
Errors
If an error occurs, errno is set to one of the following values:
EFAULT CAUSE The system detected a NULL or bad address in
attempting to use the set parameter.
ACTION Make sure that the pointer is correctly initialized.
EINVAL CAUSE The signal sig is not a valid signal number.
ACTION Refer to Table 3-5 for descriptions of valid
signal numbers.
See Also
sigaction(), sigaddset(), sigemptyset(), sigfillset(), sigismember(),
<signal.h>, POSIX.1 (Section 3.3.3)
MPE/iX 5.0 Documentation