first attempt at enabling stack protector support
[musl.git] / include / ucontext.h
blob1121761626b65c41977e51473991273abb0670fe
1 #ifndef _UCONTEXT_H
2 #define _UCONTEXT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
7 #include <signal.h>
9 #ifdef _GNU_SOURCE
10 #define ucontext __ucontext
11 #endif
13 struct __ucontext;
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 *);
20 #ifdef __cplusplus
22 #endif
23 #endif