Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 27
HP Extensions
Considerations for Using the Jump Functions
The jump functions can be valuable tools in your application program. However, if the
program changes the values of variables that are local to the procedure containing the
call to setjmp(), the program cannot depend upon the values of the local variables
being preserved.
If the program must depend on the preservation of a local variable after calls to the
jump functions, you must declare the local variable as type volatile.
HP Extensions
Table 25-4 shows the HP signals extensions that native processes can use to handle
signals.
Table 25-4. HP Signals Extensions to the POSIX.1 Standard
C Function pTAL Procedure Description
SETLOOPTIMER()
SETLOOPTIMER Sets the process-loop timer
value of the calling process.
If the timer expires, a
SIGTIMEOUT signal is
generated.
SIGACTION_INIT_() SIGACTION_INIT_ Establishes the initial state
of
signal handling for the
calling process. This
procedure is a replacement
for the ARMTRAP procedure.
SIGACTION_RESTORE_()
SIGACTION_RESTORE_ Restores the signal-
handling state stored by a
call to the SIGACTION_
SUPPLANT_()
function.
SIGACTION_SUPPLANT_() SIGACTION_SUPPLANT_ Saves the current signal-
ha
ndling state and allows a
subsystem to take over
signal handling temporarily.
SIGJMP_MASKSET_()
SIGJMP_MASKSET_ Saves the process signal
mask in a jump buffer that
has already been initialized
by the sigsetjmp()
function or SIGSETJMP_
procedure.