summaryrefslogtreecommitdiff
path: root/doc/posix-functions/longjmp.texi
blob: 420a8cc44f25934f1b9d5cae0251e9eb081b99fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@node longjmp
@section @code{longjmp}
@findex longjmp

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/longjmp.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
The effects of this call are system and compiler optimization dependent,
since it restores the contents of register-allocated variables but not
the contents of stack-allocated variables.
@item
When longjumping out of a signal handler that was being executed on an
alternate stack (installed through @code{sigaltstack}), on FreeBSD, NetBSD,
OpenBSD, you need to clear the @code{SS_ONSTACK} flag in the @code{stack_t}
structure managed by the kernel.
@end itemize