summaryrefslogtreecommitdiff
path: root/src/user/lib/include/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/include/setjmp.h')
-rw-r--r--src/user/lib/include/setjmp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/user/lib/include/setjmp.h b/src/user/lib/include/setjmp.h
new file mode 100644
index 0000000..f90bae9
--- /dev/null
+++ b/src/user/lib/include/setjmp.h
@@ -0,0 +1,13 @@
+#pragma once
+#include <user/lib/panic.h>
+
+typedef char sigjmp_buf;
+static inline int sigsetjmp(sigjmp_buf env, int savemask) {
+ (void)env; (void)savemask;
+ return 0;
+}
+
+static inline void siglongjmp(sigjmp_buf env, int val) {
+ (void)env; (void)val;
+ __libc_panic("unimplemented");
+}