summaryrefslogtreecommitdiff
path: root/src/signal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-09 06:59:45 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-09 06:59:45 +0000
commitdeb85ab44dbe784ba6174b8cf376d35aeacbe309 (patch)
tree0ba0c452f581951e24d52d1bbb3dc4dcff7ec4cc /src/signal
parent58f6259dff804faa416df4f9b1ca2fc61d178585 (diff)
downloadmusl-deb85ab44dbe784ba6174b8cf376d35aeacbe309.tar.gz
musl-deb85ab44dbe784ba6174b8cf376d35aeacbe309.tar.bz2
musl-deb85ab44dbe784ba6174b8cf376d35aeacbe309.tar.xz
musl-deb85ab44dbe784ba6174b8cf376d35aeacbe309.zip
remove unused (and invalid) C version of sigsetjmp
originally, the comment in this code was correct and it would likely work if the compiler generated a tail call to setjmp. however, commit 583e55122e767b1586286a0d9c35e2a4027998ab redesigned sigsetjmp and siglongjmp such that the old C implementation (which was not intended to be used) is not even conceptually correct. remove it in the interest of avoiding confusion when porting to new archs.
Diffstat (limited to 'src/signal')
-rw-r--r--src/signal/sigsetjmp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/signal/sigsetjmp.c b/src/signal/sigsetjmp.c
index 1bbe1a0b..e69de29b 100644
--- a/src/signal/sigsetjmp.c
+++ b/src/signal/sigsetjmp.c
@@ -1,17 +0,0 @@
-#include <setjmp.h>
-#include <signal.h>
-#include "libc.h"
-
-/* !!! This function will not work unless the compiler performs
- * tail call optimization. Machine-specific asm versions should
- * be created instead even though the workaround (tail call)
- * is entirely non-machine-specific... */
-
-int sigsetjmp(sigjmp_buf buf, int save)
-{
- if ((buf->__fl = save))
- pthread_sigmask(SIG_SETMASK, 0, (sigset_t *)buf->__ss);
- return setjmp(buf);
-}
-
-weak_alias(sigsetjmp, __sigsetjmp);