zig/lib/libc/include/generic-musl/ucontext.h

25 lines
494 B
C
Raw Normal View History

2019-03-12 07:28:05 -07:00
#ifndef _UCONTEXT_H
#define _UCONTEXT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <features.h>
#include <signal.h>
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define NGREG (sizeof(gregset_t)/sizeof(greg_t))
#endif
struct __ucontext;
int getcontext(struct __ucontext *);
2019-07-16 16:02:51 -07:00
void makecontext(struct __ucontext *, void (*)(), int, ...);
2019-03-12 07:28:05 -07:00
int setcontext(const struct __ucontext *);
int swapcontext(struct __ucontext *, const struct __ucontext *);
#ifdef __cplusplus
}
#endif
#endif