summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/signal/siglongjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/signal/siglongjmp.c')
-rw-r--r--libc-top-half/musl/src/signal/siglongjmp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/signal/siglongjmp.c b/libc-top-half/musl/src/signal/siglongjmp.c
new file mode 100644
index 0000000..bc317ac
--- /dev/null
+++ b/libc-top-half/musl/src/signal/siglongjmp.c
@@ -0,0 +1,9 @@
+#include <setjmp.h>
+#include <signal.h>
+#include "syscall.h"
+#include "pthread_impl.h"
+
+_Noreturn void siglongjmp(sigjmp_buf buf, int ret)
+{
+ longjmp(buf, ret);
+}