xref: /plan9/sys/include/ape/setjmp.h (revision 3e12c5d1bb89fc02707907988834ef147769ddaf)
1 #ifndef __SETJMP_H
2 #define __SETJMP_H
3 #pragma lib "/$M/lib/ape/libap.a"
4 
5 typedef int jmp_buf[10];
6 #ifdef _POSIX_SOURCE
7 typedef int sigjmp_buf[10];
8 #endif
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 extern int setjmp(jmp_buf);
15 extern void longjmp(jmp_buf, int);
16 
17 #ifdef _POSIX_SOURCE
18 extern int sigsetjmp(sigjmp_buf, int);
19 extern void siglongjmp(sigjmp_buf, int);
20 #endif
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif /* __SETJMP_H */
27