summaryrefslogtreecommitdiff
path: root/include/setjmp.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/setjmp.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/setjmp.h')
-rw-r--r--include/setjmp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
new file mode 100644
index 00000000..feea9cc1
--- /dev/null
+++ b/include/setjmp.h
@@ -0,0 +1,14 @@
+#ifndef __SETJMP_H
+#define __SETJMP_H
+
+#include <bits/setjmp.h>
+
+typedef jmp_buf sigjmp_buf;
+
+_Noreturn void longjmp(jmp_buf, int);
+_Noreturn void siglongjmp(sigjmp_buf, int);
+
+int setjmp(jmp_buf);
+int sigsetjmp(sigjmp_buf, int);
+
+#endif