02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sigprocmask(3P) sigprocmask(3P)<br />

NAME<br />

sigprocmask - examine and change blocked signals<br />

SYNOPSIS<br />

iinclude <br />

int sigprocmask (how, set, oset)<br />

int how;<br />

sigset_t *set, oset;<br />

DESCRIPTION<br />

sigprocmask allows the calling process to examine or change<br />

its signal mask. If the value of set is not NULL, it points to a set<br />

of signals to be used to change the currently blocked set<br />

The value of how indicates the manner in which the set is<br />

changed. The permitted values for how are:<br />

SIG BLOCK<br />

SIG UNBLOCK<br />

SIG SETMASK<br />

The resulting set will be the union of the<br />

current set and the signal set pointed to<br />

by set.<br />

The resulting set will be the intersection<br />

of the current set and the complement of<br />

the signal set pointed to by set.<br />

The resulting set will be the signal set<br />

pointed to by set.<br />

If oset is not NULL, the previous mask is stored at the location<br />

pointed to by set. If the value of set is NULL, the value of how is<br />

ignored and the process's signal mask is unchanged. When set is<br />

NULL, sigprocmask can be used to enquire about currently<br />

blocked signals.<br />

If there are any pending unblocked signals after the call to sigprocmask,<br />

at least one of those signals will be delivered before<br />

sigprocmask returns.<br />

SIGKILL and SIGSTOP cannot be caught or ignored. SIGCONT<br />

cannot be ignored. It is not possible to block these signals. This is<br />

silently enforced.<br />

RETURN VALUE<br />

Upon successful completion, 0 is returned. Otherwise, -1 is re-<br />

February, 1990<br />

RevisionC<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!