1#include <stddef.h>
2#include <signal.h>
3#include <sys/ucontext.h>
4
5--
6
7SIG_SETMASK
8
9#define ucontext(member)	offsetof (ucontext_t, member)
10#define mcontext(member)	ucontext (uc_mcontext.member)
11
12oLINK		ucontext (uc_link)
13oSS_SP		ucontext (uc_stack.ss_sp)
14oSS_SIZE	ucontext (uc_stack.ss_size)
15oGREGS		mcontext (gregs)
16oSP		mcontext (gregs[R_SP])
17oPC		mcontext (gregs[R_PC])
18oFPREGS		mcontext (fpregs)
19oFP2		mcontext (fpregs.f_fpregs[2])
20oSIGMASK	ucontext (uc_sigmask)
21