1SIGLONGJMP(P)              POSIX Programmer's Manual             SIGLONGJMP(P)
2
3
4

NAME

6       siglongjmp - non-local goto with signal handling
7

SYNOPSIS

9       #include <setjmp.h>
10
11       void siglongjmp(sigjmp_buf env, int val);
12
13

DESCRIPTION

15       The  siglongjmp()  function  shall be equivalent to the longjmp() func‐
16       tion, except as follows:
17
18        * References to setjmp() shall be equivalent to sigsetjmp().
19
20        * The siglongjmp() function shall restore the saved signal mask if and
21          only  if  the  env argument was initialized by a call to sigsetjmp()
22          with a non-zero savemask argument.
23

RETURN VALUE

25       After siglongjmp() is completed, program execution shall continue as if
26       the corresponding invocation of sigsetjmp() had just returned the value
27       specified by val. The siglongjmp() function shall not cause sigsetjmp()
28       to return 0; if val is 0, sigsetjmp() shall return the value 1.
29

ERRORS

31       No errors are defined.
32
33       The following sections are informative.
34

EXAMPLES

36       None.
37

APPLICATION USAGE

39       The  distinction  between setjmp() or longjmp() and sigsetjmp() or sig‐
40       longjmp() is only significant for programs which use sigaction(),  sig‐
41       procmask(), or sigsuspend().
42

RATIONALE

44       None.
45

FUTURE DIRECTIONS

47       None.
48

SEE ALSO

50       longjmp() , setjmp() , sigprocmask() , sigsetjmp() , sigsuspend() , the
51       Base Definitions volume of IEEE Std 1003.1-2001, <setjmp.h>
52
54       Portions of this text are reprinted and reproduced in  electronic  form
55       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
56       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
57       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
58       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
59       event of any discrepancy between this version and the original IEEE and
60       The Open Group Standard, the original IEEE and The Open Group  Standard
61       is  the  referee document. The original Standard can be obtained online
62       at http://www.opengroup.org/unix/online.html .
63
64
65
66IEEE/The Open Group                  2003                        SIGLONGJMP(P)
Impressum