Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > S

sigsetops(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember() — initialize, manipulate, and test signal sets

SYNOPSIS

#include <signal.h>

int sigemptyset(sigset_t *set);

int sigfillset(sigset_t *set);

int sigaddset(sigset_t *set, int signo);

int sigdelset(sigset_t *set, int signo);

int sigismember(const sigset_t *set, int signo);

DESCRIPTION

sigemptyset() initializes the signal set pointed to by set, to exclude all signals supported by HP-UX.

sigfillset() initializes the signal set pointed to by set, to include all signals supported by HP-UX.

Applications must call either sigemptyset() or sigfillset() at least once for each object of type sigset_t before using that object for anything else, including cases where the object is returned from a function (for example, the oset argument to sigprocmask() — see sigprocmask(2)).

sigaddset() adds the signal specified by signo to the signal set pointed to by set.

sigdelset() deletes the signal specified by signo from the signal set pointed to by set.

sigismember() tests whether the signal specified by signo is a member of the signal set pointed to by set.

RETURN VALUE

Upon successful completion, sigismember() returns a value of 1 if the specified signal is a member of the specified set, or a value of 0 if it is not. The other functions return a value of 0 upon successful completion. For all of the above functions, if an error is detected, a value of -1 is returned and errno is set to indicate the error.

ERRORS

sigaddset(), sigdelset(), and sigismember() fail if the following is true:

[EINVAL]

The value of the signo argument is out of range.

WARNINGS

The above functions do not detect a bad address passed in for the set argument. A segmentation fault is the most likely result.

AUTHOR

sigfillset(), sigemptyset(), sigaddset(), sigdelset(), and sigismember() were derived from the IEEE Standard POSIX 1003.1-1988.

STANDARDS CONFORMANCE

sigaddset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

sigdelset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

sigemptyset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

sigfillset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

sigismember(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.