[Previous] [Contents] [Next]

sigmask()

Construct a mask for a signal number

Synopsis:

#include <unix.h>

#define sigmask(s)      (1L<<((s)-1))

Library:

libc

Description:

This macro constructs the mask for a given signal number. It's used in conjunction with sigblock(), sigsetmask(), and sigunblock().

Returns:

The signal mask.

Classification:

Unix

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Caveats:

Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system libraries or in multithreaded applications is unsupported.

See also:

kill(), sigaction(), sigblock(), signal(), sigpause(), sigsetmask(), sigunblock()


[Previous] [Contents] [Next]