support _BSD_SOURCE feature test macro
[musl] / include / ucontext.h
1 #ifndef _UCONTEXT_H
2 #define _UCONTEXT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #include <signal.h>
8
9 #ifdef _GNU_SOURCE
10 #define ucontext __ucontext
11 #endif
12
13 struct __ucontext;
14
15 int  getcontext(struct __ucontext *);
16 void makecontext(struct __ucontext *, void (*)(void), int, ...);
17 int  setcontext(const struct __ucontext *);
18 int  swapcontext(struct __ucontext *, const struct __ucontext *);
19
20 #ifdef __cplusplus
21 }
22 #endif
23 #endif