From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/MAN/longjmp.htm | 99 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 reference/C/MAN/longjmp.htm (limited to 'reference/C/MAN/longjmp.htm') diff --git a/reference/C/MAN/longjmp.htm b/reference/C/MAN/longjmp.htm new file mode 100644 index 0000000..ba1bbb8 --- /dev/null +++ b/reference/C/MAN/longjmp.htm @@ -0,0 +1,99 @@ +longjmp + +
+
+
+
+
+

LONGJMP(3) Library functions LONGJMP(3) +

+ +

NAME +

longjmp - non-local jump to a saved stack context + +

SYNOPSIS +

#include <setjmp.h> + + void longjmp(jmp_buf env, int val); + +

DESCRIPTION +

longjmp() and setjmp(3) are useful for dealing with errors + and interrupts encountered in a low-level subroutine of a + program. longjmp() restores the environment saved by the + last call of setjmp() with the corresponding env argument. + After longjmp() is completed, program execution continues + as if the corresponding call of setjmp() had just returned + the value val. longjmp() cannot cause 0 to be returned. + If longjmp is invoked with a second argument of 0, 1 will + be returned instead. + +

RETURN VALUE +

This function never returns. + +

CONFORMING TO +

POSIX + +

NOTES +

POSIX does not specify if the signal context will be + restored or not. If you want to save restore signal + masks, use siglongjmp(3) longjmp() makes programs hard to + understand and maintain. If possible an alternative + should be used. + +
+
+

SEE ALSO +

+setjmp, +sigsetjmp, +siglongjmp, +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+                        November 25, 1994                       1
+
+
+
+

+


+

+

+ + + + +
+Top + +Master Index + +Keywords + +Functions +
+
+

+


+ +This manual page was brought to you by mjl_man V-2.0 -- cgit v1.2.3-54-g00ecf