Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual—522629-013
14-155
SIGSETJMP_ Procedure
SIGSETJMP_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
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
•
CEXTDECS (via 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
Parameters
retval returned value
INT(32)
indicates the outcome of the call:
0D indicates that the SIGSETJMP_ procedure was called directly.
Note. This procedure can be called only from native processes.
#include <setjmp.h>
sigjmp_buf env;
__int32_t sigsetjmp ( sigjmp_buf *env
,int mask );
?SOURCE $SYSTEM.SYSTEM.HSETJMP
retval := SIGSETJMP_ ( env ! o
,mask ); ! i