Guardian Procedure Calls Reference Manual

SIGSETJMP_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Example
Related Programming Manual
Summary
NOTE: This procedure can be called only from native processes.
The SIGSETJMP_ procedure saves process context in a jump buffer. This context is used when a
nonlocal goto is performed by a corresponding call to the SIGLONGJMP_ procedure. Optionally,
this procedure also saves the current signal mask.
Syntax for C Programmers
#include <setjmp.h>
sigjmp_buf env;
__int32_t sigsetjmp ( sigjmp_buf *env
,int mask );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
?SOURCE $SYSTEM.ZGUARD.HSETJMP
retval := SIGSETJMP_ ( env ! o
,mask ); ! i
Parameters
env
output
INT .EXT:ref:(SIGJMP_BUF_TEMPLATE)
indicates the address of a previously allocated jump buffer in which the process context of the
caller is returned. The jump buffer is allocated by the SIGJMP_BUF_DEF DEFINE.
SIGSETJMP_ Procedure 1385