.\" Copyright (c) 1990 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)setjmp.3 6.4 (Berkeley) %G%
sigsetjmp, siglongjmp, setjmp, longjmp, _setjmp, _longjmp longjmperror \-
sigsetjmp(sigjmp_buf env, int savemask);
siglongjmp(sigjmp_buf env, int val);
longjmp(jmp_buf env, int val);
_longjmp(jmp_buf env, int val);
functions save their calling environment in
Each of these functions returns 0.
functions restore the environment saved by their respective versions
They then return so that program execution continues as if the
Pairs of calls may be intermixed, i.e. both
combinations may be used in the same program, however, individual
routines may not be called after the routine which called the
All accessible data have values as of the time the
pairs save and restore the signal mask (see
pairs save and restore only the register set and the stack.
pairs save and restore the signal mask if the argument
is non-zero, otherwise only the register set and the stack are saved.
are corrupted, or correspond to an environment that has already returned,
routine calls the routine
returns the program is aborted (see abort(2)).
prints the message ``longjmp botch'' to standard error and returns.
User programs wishing to exit more gracefully should write their own
sigvec(2), sigstack(2), signal(3)