diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
commit | 40e2986d3d196855bba3836a60a482fd3a0f73a8 (patch) | |
tree | 6ce03ea7ddffb7f0001bff12706b21f9bce3c67e /src/setjmp/siglongjmp.c | |
parent | 421cc9cd7295e5b92cf167a41bd8f55a3b842728 (diff) |
remove posix and xopen specific functions
Diffstat (limited to 'src/setjmp/siglongjmp.c')
-rw-r--r-- | src/setjmp/siglongjmp.c | 42 |
1 files changed, 0 insertions, 42 deletions
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 |