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/_setjmp.c | |
| parent | 4d6a7c78e82718b77d647f6c048b4438bcf1cf65 (diff) | |
add documentation
Diffstat (limited to 'src/setjmp/_setjmp.c')
| -rw-r--r-- | src/setjmp/_setjmp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/setjmp/_setjmp.c b/src/setjmp/_setjmp.c index 922a36dc..a2537915 100644 --- a/src/setjmp/_setjmp.c +++ b/src/setjmp/_setjmp.c @@ -1,9 +1,28 @@ #include <setjmp.h> +/** save program state **/ + int _setjmp(jmp_buf env) { return setjmp(env); } + +/*** +saves the current state, without the signal mask, of the calling environment +in the TYPEDEF(jmp_buf) ARGUMENT(env). +***/ + /* +CONSTRAINT: entire controlling expression of a selection or iteration statement +CONSTRAINT: one operand of a relational or equality operator which is the entire controlling expression of a selction or iteration statement +CONSTRAINT: the operand of a unary ! as the entire controlling expression of a selection or iteration statement +CONSTRAINT: an entire expression statement + +UNSPECIFIED(Whether THIS() is a macro or identifier with external linkage) + +UNDEFINED(A macro definition of THIS() is suppressed in order to access an actual function) +UNDEFINED(A program defines an external identifier named LITERAL(setjmp)) + XOPEN(400) +XOBSOLETE(700, FUNCTION(siglongjmp)) */ |
