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>
|
|
|
|
|
2012-11-26 04:04:23 +00:00
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
|
|
#define NGREG (sizeof(gregset_t)/sizeof(greg_t))
|
2011-02-19 03:03:03 +00:00
|
|
|
#endif
|
2011-02-12 05:22:29 +00:00
|
|
|
|
2011-06-29 21:13:01 +00:00
|
|
|
struct __ucontext;
|
|
|
|
|
|
|
|
int getcontext(struct __ucontext *);
|
2019-04-05 17:26:17 +00:00
|
|
|
void makecontext(struct __ucontext *, 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
|