RTEMS Logo

RTEMS 4.9.1 On-Line Library


Signal Manager pthread_sigmask - Examine and Change Thread Blocked Signals

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

2.4.9: pthread_sigmask - Examine and Change Thread Blocked Signals

CALLING SEQUENCE:

#include <signal.h>

int pthread_sigmask(
  int             how,
  const sigset_t *set,
  sigset_t       *oset
);

STATUS CODES:

EINVAL
Invalid argument passed.

DESCRIPTION:

This function is used to alter the set of currently blocked signals for the calling thread. A blocked signal will not be received by the process. The behavior of this function is dependent on the value of how which may be one of the following:

SIG_BLOCK
The set of blocked signals is set to the union of set and those signals currently blocked.
SIG_UNBLOCK
The signals specific in set are removed from the currently blocked set.
SIG_SETMASK
The set of currently blocked signals is set to set.

If oset is not NULL, then the set of blocked signals prior to this call is returned in oset.

NOTES:

It is not an error to unblock a signal which is not blocked.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation