NAME
sigsetjmp - Sets jump point for a nonlocal goto
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <setjmp.h>
int sigsetjmp (
sigjmp_buf env,
int savemask );
PARAMETERS
env Specifies an address for a sigjmp_buf structure.
savemask
Specifies whether the current signal mask should be
saved.
DESCRIPTION
The sigsetjmp() function saves its calling environment in
its env parameter for later use by the siglongjmp() func-
tion.
If the value of the savemask parameter is not 0 (zero) the
sigsetjmp() function will also save the process' current
signal mask as part of the calling environment.
CAUTION
If automatic and register variables are changed after the
sigsetjmp(), their values are indeterminate after the .nh
siglongjmp(). You cannot assume that these variables are
restored to what they were when the .nh sigsetjmp() was
called. Nor can you assume that they are set to whatever
value they had when the function sequence containing the .nh
siglongjmp() was started.
If you want them to retain the values they had when the
function sequence containing the .nh siglongjmp() is
started, declare them as volatile.
NOTES
AES Support Level: Full use
RETURN VALUES
If the return is from a successful direct invocation, the
sigsetjmp() function returns the value 0 (zero). If the
return is from a call to the siglongjmp() function, the sig-
setjmp() function returns a nonzero value.
RELATED INFORMATION
Functions: sigaction(2), siglongjmp(3), sigprocmask(2),
sigsuspend(2)
Acknowledgement and Disclaimer