2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _UCONTEXT_H
|
|
|
|
#define _UCONTEXT_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 03:13:55 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <signal.h>
|
|
|
|
|
2011-02-19 03:03:03 +00:00
|
|
|
#ifdef _GNU_SOURCE
|
|
|
|
#define ucontext __ucontext
|
|
|
|
#endif
|
2011-02-12 05:22:29 +00:00
|
|
|
|
2011-06-29 21:13:01 +00:00
|
|
|
struct __ucontext;
|
|
|
|
|
|
|
|
int getcontext(struct __ucontext *);
|
|
|
|
void makecontext(struct __ucontext *, void (*)(void), int, ...);
|
2011-07-31 04:10:29 +00:00
|
|
|
int setcontext(const struct __ucontext *);
|
2011-06-29 21:13:01 +00:00
|
|
|
int swapcontext(struct __ucontext *, const struct __ucontext *);
|
2011-02-12 05:22:29 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|