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

sigemptyset

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Initializes a signal set to the empty set.

Syntax

   #include <signal.h>

   int sigemptyset (sigset_t *set);

Parameters

set

A pointer to a structure of type sigset_t to initialize to the empty set.

Return Values

0

Success.

-1

An error occurred. The signal set is not initialized, and errno is set to indicate the error condition.

Description

The sigemptyset() function initializes set to the empty set. All signals described in Table 3-6 “POSIX/iX Signals” are excluded from the set.

The sigemptyset() or sigfillset() function must be called to initialize the structure of type sigset_t pointed to by set prior to its use by other functions.

Implementation Considerations

Refer to the EFAULT error description below.

Errors

If an error occurs, errno is set to the following value:

EFAULTCAUSE The system detected a NULL or bad address in attempting to use the set parameter.
 ACTION Make sure that the pointer is correctly initialized.

See Also

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

Feedback to webmaster