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.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/user/lib/include/setjmp.h b/src/user/lib/include/setjmp.h
index f90bae9..51c7fd2 100644
--- a/src/user/lib/include/setjmp.h
+++ b/src/user/lib/include/setjmp.h
@@ -1,13 +1,25 @@
#pragma once
#include <user/lib/panic.h>
-typedef char sigjmp_buf;
+typedef char jmp_buf[1];
+typedef char sigjmp_buf[1];
+
+static inline int setjmp(jmp_buf env) {
+ (void)env;
+ return 0;
+}
+
static inline int sigsetjmp(sigjmp_buf env, int savemask) {
(void)env; (void)savemask;
return 0;
}
-static inline void siglongjmp(sigjmp_buf env, int val) {
+static inline _Noreturn void longjmp(jmp_buf env, int val) {
+ (void)env; (void)val;
+ __libc_panic("unimplemented");
+}
+
+static inline _Noreturn void siglongjmp(sigjmp_buf env, int val) {
(void)env; (void)val;
__libc_panic("unimplemented");
}