2011-02-12 08:22:29 +03:00
|
|
|
#ifndef _UCONTEXT_H
|
|
|
|
#define _UCONTEXT_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 07:13:55 +04:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 08:22:29 +03:00
|
|
|
#include <signal.h>
|
|
|
|
|
2012-11-26 08:04:23 +04:00
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
|
|
#define NGREG (sizeof(gregset_t)/sizeof(greg_t))
|
2011-02-19 06:03:03 +03:00
|
|
|
#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
|