Construct a mask for a signal number
#include <unix.h> #define sigmask(s) (1L<<((s)-1))
BlackBerry 10.0.0
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
This macro constructs the mask for a given signal number. Use sigmask() in conjunction with sigblock() , sigsetmask() , and sigunblock() .
The signal mask.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |
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.