summaryrefslogtreecommitdiff
path: root/src/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp.h')
-rw-r--r--src/setjmp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/setjmp.h b/src/setjmp.h
new file mode 100644
index 0000000..2972cd1
--- /dev/null
+++ b/src/setjmp.h
@@ -0,0 +1,17 @@
+#ifndef _SETJMP_H
+#define _SETJMP_H
+
+typedef unsigned long __jmp_buf[6];
+
+typedef struct __jmp_buf_tag {
+ __jmp_buf __jb;
+ unsigned long __fl;
+ unsigned long __ss[128/sizeof(long)];
+} jmp_buf[1];
+
+int setjmp(jmp_buf);
+_Noreturn void longjmp(jmp_buf, int);
+
+// YET UNTESTED
+
+#endif