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/setjmp.htm | 99 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 reference/C/MAN/setjmp.htm (limited to 'reference/C/MAN/setjmp.htm') diff --git a/reference/C/MAN/setjmp.htm b/reference/C/MAN/setjmp.htm new file mode 100644 index 0000000..8c52e96 --- /dev/null +++ b/reference/C/MAN/setjmp.htm @@ -0,0 +1,99 @@ +setjmp + +
+
+
+
+
+

SETJMP(3) Library functions SETJMP(3) +

+ +

NAME +

setjmp - save stack context for non-local goto + +

SYNOPSIS +

#include <setjmp.h> + + int setjmp(jmp_buf env ); + +

DESCRIPTION +

setjmp and longjmp(3) are useful for dealing with errors + and interrupts encountered in a low-level subroutine of a + program. setjmp() saves the stack context/environment in + env for later use by longjmp(). The stack context will be + invalidated if the function which called setjmp() returns. + +

RETURN VALUE +

It returns the value 0 if returning directly and non-zero + when returning from longjmp() using the saved context. + +

CONFORMING TO +

POSIX + +

NOTES +

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

SEE ALSO +

+, +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