poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / longjmp.texi
blob420a8cc44f25934f1b9d5cae0251e9eb081b99fd
1 @node longjmp
2 @section @code{longjmp}
3 @findex longjmp
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/longjmp.html}
7 Gnulib module: ---
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 The effects of this call are system and compiler optimization dependent,
17 since it restores the contents of register-allocated variables but not
18 the contents of stack-allocated variables.
19 @item
20 When longjumping out of a signal handler that was being executed on an
21 alternate stack (installed through @code{sigaltstack}), on FreeBSD, NetBSD,
22 OpenBSD, you need to clear the @code{SS_ONSTACK} flag in the @code{stack_t}
23 structure managed by the kernel.
24 @end itemize