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

DESCRIPTION

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

RETURN VALUE

30       After siglongjmp() is completed, program execution shall continue as if
31       the corresponding invocation of sigsetjmp() had just returned the value
32       specified   by   val.    The  siglongjmp()  function  shall  not  cause
33       sigsetjmp() to return 0; if val is  0,  sigsetjmp()  shall  return  the
34       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(), pthread_sigmask(), setjmp(), sigsetjmp(), sigsuspend()
57
58       The Base Definitions volume of POSIX.1‐2017, <setjmp.h>
59
61       Portions  of  this text are reprinted and reproduced in electronic form
62       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
63       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
64       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
65       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
66       event of any discrepancy between this version and the original IEEE and
67       The  Open Group Standard, the original IEEE and The Open Group Standard
68       is the referee document. The original Standard can be  obtained  online
69       at http://www.opengroup.org/unix/online.html .
70
71       Any  typographical  or  formatting  errors that appear in this page are
72       most likely to have been introduced during the conversion of the source
73       files  to  man page format. To report such errors, see https://www.ker
74       nel.org/doc/man-pages/reporting_bugs.html .
75
76
77
78IEEE/The Open Group                  2017                       SIGLONGJMP(3P)
Impressum