Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sigsetmask(2) — HP-UX 6.00

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

#include <signal.h>

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, as specified with the macro sigmask(i), is a 1. 

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.

RETURN VALUE

The previous set of masked signals is returned. 

EXAMPLES

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

long oldmask;

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

DEPENDENCIES

Series 500, 800
The macro sigmask(i) is currently not supported.  See sigvector(2) for its expansion. 

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,  May 11, 2021

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