adjust mips crt_arch entry point asm to avoid assembler bugs
[musl.git] / include / setjmp.h
blob2d43abf84f54ad9fc9501e0204816579c9b0de99
1 #ifndef _SETJMP_H
2 #define _SETJMP_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #include <bits/setjmp.h>
12 typedef struct __jmp_buf_tag {
13 __jmp_buf __jb;
14 unsigned long __fl;
15 unsigned long __ss[128/sizeof(long)];
16 } jmp_buf[1];
18 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
19 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
20 || defined(_BSD_SOURCE)
21 typedef jmp_buf sigjmp_buf;
22 int sigsetjmp (sigjmp_buf, int);
23 _Noreturn void siglongjmp (sigjmp_buf, int);
24 #endif
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
32 int setjmp (jmp_buf);
33 _Noreturn void longjmp (jmp_buf, int);
35 #define setjmp setjmp
37 #ifdef __cplusplus
39 #endif
41 #endif