add getresuid and getresgid syscall wrappers
[musl] / include / setjmp.h
1 #ifndef _SETJMP_H
2 #define _SETJMP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <bits/setjmp.h>
9
10
11 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
12  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
13 typedef unsigned long sigjmp_buf[(128+sizeof(jmp_buf))/sizeof(long)];
14 #ifdef _GNU_SOURCE
15 #define jmp_buf sigjmp_buf
16 #endif
17 int sigsetjmp (sigjmp_buf, int);
18 void siglongjmp (sigjmp_buf, int);
19 #endif
20
21
22 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
23 int _setjmp (jmp_buf);
24 void _longjmp (jmp_buf, int);
25 #endif
26
27
28 int setjmp (jmp_buf);
29 void longjmp (jmp_buf, int);
30
31 #define setjmp setjmp
32 #define longjmp longjmp
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif