thr_sigsetmask

Changes or examines a thread's signal mask.

Library:LibC
Classification:UNIX International
Service:Threads

Syntax

  #include <thread.h>
  #include <signal.h>
   
  int thr_sigsetmask (
     int               how,
     const sigset_t   *set,
     sigset_t         *oset);
  

Parameters

how

(IN) Specifies how the set is changed with one of the following flags:

Name

Value

Description

SIG_BLOCK

0x00000000

Indicates that the signals in the set parameter are blocking and are to be added to the thread's signal mask.

SIG_UNBLOCK

0x00000001

Indicates that the signals in the set parameter are to be unblocked and removed from the thread's signal mask.

SIG_SETMASK

0xFFFFFFFF

Indicates that the signal mask is to be replaced by the signals in the set parameter.

set

(IN) Points to the signal set with the signals to add or remove. The set should be an application-defined set of signals. Most standard POSIX signals are not currently supported on NetWare. For the few that are supported, see Standard Signals.

If NULL, the how parameter is ignored and the function returns the current value of the signal set in the oset parameter.

oset

(OUT) Points to the current signal set if the set parameter is NULL. If the set parameter is not NULL, points to the previous value of the signal set.

Return Values

If successful, returns 0. Otherwise returns a nonzero error code.