Guardian Procedure Calls Reference Manual
SIGLONGJMP_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
NOTE: This procedure can be called only from native processes.
The SIGLONGJMP_ procedure performs a nonlocal goto. It restores the state of the calling process
using context saved in a jump buffer by the SIGSETJMP_ procedure. Control returns to the location
of the corresponding SIGSETJMP_ procedure call. The signal mask is also restored if it was saved;
all other signal-handling specifications remain unchanged.
Syntax for C Programmers
#include <setjmp.h>
void siglongjmp ( sigjmp_buf env
,int value );
Syntax for TAL Programmers
?SOURCE $SYSTEM.ZGUARD.HSETJMP
SIGLONGJMP_ ( env ! i
,value ); ! i
Parameters
env
input
INT .EXT:ref:(SIGJMP_BUF_TEMPLATE)
indicates the address of a previously allocated and initialized jump buffer containing the process
context to be restored by this procedure.
value
input
INT(32):value
specifies the value to be returned at the destination of the long jump; that is, at the location of
the corresponding SIGSETJMP_ call. If this value is set to 0D, then 1D is returned; otherwise
value is returned.
1374 Guardian Procedure Calls (S)