sigdelset: Delete a signal from a signal set
This macro deletes a specific signal from a signal set. It is one of several macros that manage or query signal sets.
Format
#include <signal.h>
int sigdelset(sigset_t *set,
int signo);
- set
- A pointer to a signal set of the
sigset_ttype. - signo
- One of the signals defined in the signal.h header file that corresponds to a specific signal to be deleted. See Table 1 for a list of supported signals.
Normal return
On successful completion, the sigdelset macro returns a value of 0.
Error return
If an error occurs, the sigdelset macro returns a value of -1 and sets errno to the following:
- EINVAL
- The value specified by the signo parameter is not a valid signal number.
Programming considerations
Before using the sigdelset macro to delete a signal from a signal set, the signal set must be initialized by using either the sigemptyset macro or sigfillset macro. If it is not initialized, the contents of the signal set are not guaranteed.
Examples
See sigsuspend: Set signal mask and wait for a signal for an example of the sigdelset macro.
Related information
- sigaction: Examine and change signal action
- sigaddset: Add a signal to a signal set
- sigemptyset: Initialize and empty a signal set
- sigfillset: Initialize and fill a signal set
- sigismember: See if a signal is a member of a signal set
- signal: Install signal handler
- sigpending: Examine pending signals
- sigprocmask: Examine and change blocked signals
- sigsuspend: Set signal mask and wait for a signal.
See z/TPF C functions overview for more information about z/TPF C/C++ language support.