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