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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       siglongjmp - non-local goto with signal handling
13

SYNOPSIS

15       #include <setjmp.h>
16
17       void siglongjmp(sigjmp_buf env, int val);
18
19

DESCRIPTION

21       The siglongjmp() function shall be equivalent to  the  longjmp()  func‐
22       tion, except as follows:
23
24        * References to setjmp() shall be equivalent to sigsetjmp().
25
26        * The siglongjmp() function shall restore the saved signal mask if and
27          only if the env argument was initialized by a  call  to  sigsetjmp()
28          with a non-zero savemask argument.
29

RETURN VALUE

31       After siglongjmp() is completed, program execution shall continue as if
32       the corresponding invocation of sigsetjmp() had just returned the value
33       specified by val. The siglongjmp() function shall not cause sigsetjmp()
34       to return 0; if val is 0, sigsetjmp() shall return the value 1.
35

ERRORS

37       No errors are defined.
38
39       The following sections are informative.
40

EXAMPLES

42       None.
43

APPLICATION USAGE

45       The distinction between setjmp() or longjmp() and sigsetjmp()  or  sig‐
46       longjmp()  is only significant for programs which use sigaction(), sig‐
47       procmask(), or sigsuspend().
48

RATIONALE

50       None.
51

FUTURE DIRECTIONS

53       None.
54

SEE ALSO

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