SOL_TCP is nonstandard and not in the reserved namespace
[musl] / include / setjmp.h
1 #ifndef _SETJMP_H
2 #define _SETJMP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #include <bits/setjmp.h>
11
12
13 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
14  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
15  || defined(_BSD_SOURCE)
16 typedef struct __sigjmp_buf {
17         jmp_buf __jb;
18         unsigned long __fl;
19         unsigned long __ss[128/sizeof(long)];
20 } sigjmp_buf[1];
21 int sigsetjmp (sigjmp_buf, int);
22 _Noreturn void siglongjmp (sigjmp_buf, int);
23 #endif
24
25
26 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
27  || defined(_BSD_SOURCE)
28 int _setjmp (jmp_buf);
29 _Noreturn void _longjmp (jmp_buf, int);
30 #endif
31
32
33 int setjmp (jmp_buf);
34 _Noreturn void longjmp (jmp_buf, int);
35
36 #define setjmp setjmp
37 #define longjmp longjmp
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif