Go to the previous, next section.

sgetmask and ssetmask

SYNOPSIS

sigset_t sgetmask(void);

sigset_t ssetmask(sigset_t mask);

PARAMETERS

mask: [in] the new signal mask.

DESCRIPTION

sgetmask retreives the signal mask of the current task and ssetmask sets it to mask. A signal is blocked by setting the bit corresponding to the signal number in mask.

RETURN VALUE

Both calls return the signal mask at the time of the call (that means, in the case of ssetmask before modifying it).

Go to the previous, next section.