Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 25
Standard Signals Functions
siglongjmp() SIGLONGJMP_ Performs a nonlocal goto. It is often called from
a signal handler to return to the main loop of a
program instead of returning from the handler. It
restores the execution context saved by a call to
the sigsetjmp() function, including the
process signal mask if it was saved in a
sigsetjmp() call.
signal()
SIGNAL_ Specifies the action to be taken upon delivery of
a signal. A signal action specified by this
function is reset to the default action each time
the signal is delivered.
sigpending() SIGPENDING_ Returns the set of signals that are blocked from
d
elivery and pending to the calling process.
sigprocmask() SIGPROCMASK_ Changes or examines a process signal mask.
sigsetjmp() SIGSETJMP_ Saves the current execution context, which can
in
clude the process signal mask, and is restored
after a call to siglongjmp().
sigsuspend() SIGSUSPEND_ Changes a process signal mask and suspends
t
he calling process until either a signal is caught
or a signal occurs that terminates the process.
sleep() No equivalent
Suspends the calling process for a specified
period of time until either the time elapses, a
signal is caught, or a signal occurs that
terminates the process.
Table 25-3. Signals Functions That Conform to the POSIX.1
Standard (page 2 of 2)
C Function pTAL Procedure Description