2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _UCONTEXT_H
|
|
|
|
#define _UCONTEXT_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
int getcontext(ucontext_t *);
|
|
|
|
void makecontext(ucontext_t *, void (*)(void), int, ...);
|
|
|
|
int setcontext(const ucontext_t *);
|
|
|
|
int swapcontext(ucontext_t *, const ucontext_t *);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|