Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sigsetmask(2) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

kill(2)

sigblock(2)

sigpause(2)

sigvector(2)

SIGSETMASK(2)  —  HP-UX

NAME

sigsetmask − set current signal mask

SYNOPSIS

long sigsetmask(mask);
long mask;

DESCRIPTION

Sigsetmask sets the current signal mask (those signals which are blocked from delivery).  Signal i is blocked if the i-th bit in mask is a 1 (that is, if (mask & (1L << (i-1))) != 0 ). 

It is not possible to mask those signals which cannot be ignored, as documented in signal(2); this restriction is silently imposed by the system.

Sigblock(2) can be used to add elements to the set of blocked signals.

EXAMPLES

The following call to sigsetmask causes only the SIGUSR1 and SIGUSR2 signals to be blocked:

#define MASK(s)(1 << ((s)-1)) long oldmask;

oldmask = sigsetmask (MASK (SIGUSR1) | MASK (SIGUSR2));

RETURN VALUE

The previous set of masked signals is returned. 

AUTHOR

Sigsetmask was developed by the University of California, Berkeley California, Computer Science Division, Department of Electrical Engineering and Computer Science. 

SEE ALSO

kill(2), sigblock(2), sigpause(2), sigvector(2). 

Hewlett-Packard Company  —  Version B.1,  April 12, 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026