Access the Signal Mask of the Calling Thread
thr_sigsetmask(3T)
Use thr_sigsetmask() to change or examine the signal
mask of the calling thread.
#include <thread.h>
#include <signal.h>
int thr_sigsetmask(int how, const sigset_t *set, sigset_t *oset);