/* setjmp.h: nonlocal gotos. */ #ifndef _SETJMP_H #define _SETJMP_H #include #include #ifdef __cplusplus extern "C" { #endif /* Saves the current execution state in env. */ int setjmp(jmp_buf env); /* Saves the current execution state (and optionally, the current signal mask) in env. */ int sigsetjmp(sigjmp_buf env, int savesigs); /* Restores the execution state saved in env by a setjmp() call. */ __noreturn void longjmp(jmp_buf env, int val); /* Restores the execution state saved in env by a sigsetjmp() call. */ __noreturn void siglongjmp(sigjmp_buf env, int val); #ifdef __cplusplus } #endif #endif