RTEMS Logo

RTEMS 4.8.0 On-Line Library


Signal Manager sigprocmask - Examine and Change Process Blocked Signals

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

2.4.8: sigprocmask - Examine and Change Process Blocked Signals

CALLING SEQUENCE:

#include <signal.h>

int sigprocmask(
  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 on a process wide basis. 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-2007OAR Corporation