diff options
Diffstat (limited to 'src/setjmp')
-rw-r--r-- | src/setjmp/_longjmp.c | 33 | ||||
-rw-r--r-- | src/setjmp/_setjmp.c | 30 | ||||
-rw-r--r-- | src/setjmp/sigjmp_buf.c | 16 | ||||
-rw-r--r-- | src/setjmp/siglongjmp.c | 42 | ||||
-rw-r--r-- | src/setjmp/sigsetjmp.c | 40 |
5 files changed, 0 insertions, 161 deletions
diff --git a/src/setjmp/_longjmp.c b/src/setjmp/_longjmp.c deleted file mode 100644 index c274889c..00000000 --- a/src/setjmp/_longjmp.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <setjmp.h> -#include "_safety.h" - -/** restore calling environment **/ - -void _longjmp(jmp_buf env, int val) -{ - SIGNAL_SAFE(0); - 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)) -*/ diff --git a/src/setjmp/_setjmp.c b/src/setjmp/_setjmp.c deleted file mode 100644 index 6ed81a7e..00000000 --- a/src/setjmp/_setjmp.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <setjmp.h> -#include "_safety.h" - -/** save program state **/ - -int _setjmp(jmp_buf env) -{ - SIGNAL_SAFE(0); - 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)) -*/ diff --git a/src/setjmp/sigjmp_buf.c b/src/setjmp/sigjmp_buf.c deleted file mode 100644 index 54358117..00000000 --- a/src/setjmp/sigjmp_buf.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <setjmp.h> - -/** program environment with signal mask **/ - -typedef jmp_buf sigjmp_buf; - -/*** -is used to hold all the information needed to restore a a calling -environment, including the signal mask. -***/ - -/* -SIGNAL_SAFE(0) -TYPEDEF(an array type) -POSIX(1) -*/ diff --git a/src/setjmp/siglongjmp.c b/src/setjmp/siglongjmp.c deleted file mode 100644 index 7dc550ce..00000000 --- a/src/setjmp/siglongjmp.c +++ /dev/null @@ -1,42 +0,0 @@ -#if 0 - -#include <setjmp.h> -#include <sys/types.h> -#include <signal.h> -#include "_safety.h" - -/** restore calling environment with signal mask **/ - -void siglongjmp(sigjmp_buf env, int val) -{ - SIGNAL_SAFE(0); - - /* restore signal mask */ - - return longjmp(env, val); -} - -/*** -restores the environment, including the saved signal mask (if any), of a -previous call to FUNCTION(sigsetjmp) and continues execution at the location of -the call to FUNCTION(sigsetjmp). - -All objects previously accessible at the time of the call to FUNCTION(sigsetjmp) -have the same values. Non-TYPE(volatile) objects of automatic storage duration -that have changed since the call to FUNCTION(sigsetjmp) have intederminate -values. - -When execution resumes at the point of the original call to FUNCTION(sigsetjmp), -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) - -POSIX(1) -*/ - -#endif diff --git a/src/setjmp/sigsetjmp.c b/src/setjmp/sigsetjmp.c deleted file mode 100644 index 7ca66b31..00000000 --- a/src/setjmp/sigsetjmp.c +++ /dev/null @@ -1,40 +0,0 @@ -#if 0 - -#include <setjmp.h> -#include <sys/types.h> -#include <signal.h> - -/** save program state with signal mask **/ - -int sigsetjmp(sigjmp_buf env, int savemask) -{ - SIGNAL_SAFE(0); - - if (savemask) { - /* save mask to env */ - } - return setjmp(env); -} - -/*** -saves the current state of the calling environment in the -TYPEDEF(sigjmp_buf) ARGUMENT(env). If ARGUMENT(savemask) is nonzero, the saved -environment includes the signal mask of the current thread. -***/ - -/* -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)) - -POSIX(1) -*/ - - -#endif |