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.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/user/lib/include/setjmp.h b/src/user/lib/include/setjmp.h
deleted file mode 100644
index 6d05d79..0000000
--- a/src/user/lib/include/setjmp.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#pragma once
-#include <bits/panic.h>
-
-typedef uint64_t jmp_buf[8]; /* rbx, rsp, rbp, r12, r13, r14, r15, rip */
-typedef char sigjmp_buf[1];
-
-int setjmp(jmp_buf env);
-_Noreturn void longjmp(jmp_buf env, int val);
-
-static inline int sigsetjmp(sigjmp_buf env, int savemask) {
- (void)env; (void)savemask;
- return 0;
-}
-
-static inline _Noreturn void siglongjmp(sigjmp_buf env, int val) {
- (void)env; (void)val;
- __libc_panic("unimplemented");
-}