.TH SETJMP 3 "19 January 1983"
setjmp, longjmp \- non-local goto
These routines are useful for dealing with errors
and interrupts encountered in
a low-level subroutine of a program.
saves its stack environment in
restores the environment saved by the last call of
It then returns in such a way that execution
continues as if the call of
had just returned the value
to the function that invoked
which must not itself have returned in the interim.
All accessible data have values as of the time
save and restore the signal mask
manipulate only the C stack and registers.
sigvec(2), sigstack(2), signal(3)
does not save current notion of whether the process is
executing on the signal stack. The result is that a
longjmp to some place on the signal stack leaves the
signal stack state incorrect.