diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-03-02 12:04:38 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-03-02 12:04:38 -0500 |
| commit | bf1a4a5a88fbbb21dec716896eff8319f2997ce7 (patch) | |
| tree | 4817519c4a9be2ce2ca0512fb14563c9a7f4eb25 /src/setjmp/_longjmp.c | |
| parent | 4d6a7c78e82718b77d647f6c048b4438bcf1cf65 (diff) | |
add documentation
Diffstat (limited to 'src/setjmp/_longjmp.c')
| -rw-r--r-- | src/setjmp/_longjmp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/setjmp/_longjmp.c b/src/setjmp/_longjmp.c index 6a7d0b5c..f8c46b32 100644 --- a/src/setjmp/_longjmp.c +++ b/src/setjmp/_longjmp.c @@ -1,10 +1,31 @@ #include <setjmp.h> +/** restore calling environment **/ + void _longjmp(jmp_buf env, int val) { return longjmp(env, val); } +/*** +restores the environment, without manipulation the signal mask, of a previous +call to FUNCTION(_setjmp) and continues execution at the location of the call +to FUNCTION(_setjmp). + +All objects previously accessible at the time of the call to FUNCTION(_setjmp) +have the same values. Non-TYPE(volatile) objects of automatic storage duration +that have changed since the call to FUNCTION(_setjmp) have intederminate values. + +When execution resumes at the point of the original call to FUNCTION(_setjmp), +the value specified by ARGUMENT(val) is returned. If 0 is specified, then the +return value is 1. +***/ + /* +UNDEFINED(There was no previous call to FUNCTION(_setjmp)) +UNDEFINED(The function containing the previous call to FUNCTION(_setjmp) is no longer executing) +UNDEFINED(THIS() is called from a nested signal handler) + XOPEN(400) +XOBSOLETE(700, FUNCTION(siglongjmp)) */ |
