Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (L)
Guardian Procedure Calls Reference Manual522629-013
8-24
LONGJMP_ Procedure
LONGJMP_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The LONGJMP_ procedure performs a nonlocal goto. It restores the state of the
calling process with context saved in a jump buffer by the SETJMP_ procedure.
Control returns to the location of the corresponding SETJMP_ procedure call.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
env input
INT .EXT:ref:(JMP_BUF_TEMPLATE)
indicates the address of a jump buffer containing the process context to be
restored.
value input
INT(32)
specifies the value to be returned at the destination of the long jump; that is, at the
location of the corresponding SETJMP_ call. If this value is set to 0D, then 1D is
returned; otherwise
value is returned.
#include <setjmp.h>
jmp_buf env;
void longjmp ( jmp_buf env
,int value );
?SOURCE $SYSTEM.SYSTEM.HSETJMP
LONGJMP_ ( env ! i
,value ); ! i