HPlogo MPE/iX Developer's Kit Reference Manual Volume I: HP 3000 MPE/iX Computer Systems > Chapter 4  POSIX/iX Library Function Descriptions

sigdelset

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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-6 “POSIX/iX Signals”.

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:

EFAULTCAUSEThe system detected a NULL or bad address in attempting to use the set parameter.
 ACTIONMake sure that the pointer is correctly initialized.
EINVALCAUSEThe signal sig is not a valid signal number.
 ACTIONRefer to Table 3-6 “POSIX/iX Signals” for descriptions of valid signal numbers.

See Also

sigaction(), sigaddset(), sigemptyset(), sigfillset(), sigismember(), <signal.h>, POSIX.1 (Section 3.3.3)

Feedback to webmaster