summaryrefslogtreecommitdiff
path: root/sys/include/ape/setjmp.h
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:47:56 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:47:56 +0300
commitc558a99e0be506a9abdf677f0ca4490644e05fc1 (patch)
tree17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/ape/setjmp.h
parente5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff)
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/ape/setjmp.h')
-rwxr-xr-xsys/include/ape/setjmp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/include/ape/setjmp.h b/sys/include/ape/setjmp.h
new file mode 100755
index 000000000..eb67d3896
--- /dev/null
+++ b/sys/include/ape/setjmp.h
@@ -0,0 +1,26 @@
+#ifndef __SETJMP_H
+#define __SETJMP_H
+#pragma lib "/$M/lib/ape/libap.a"
+
+typedef int jmp_buf[10];
+#ifdef _POSIX_SOURCE
+typedef int sigjmp_buf[10];
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int setjmp(jmp_buf);
+extern void longjmp(jmp_buf, int);
+
+#ifdef _POSIX_SOURCE
+extern int sigsetjmp(sigjmp_buf, int);
+extern void siglongjmp(sigjmp_buf, int);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __SETJMP_H */