1#include <stddef.h> 2#include <signal.h> 3#include <sys/ucontext.h> 4 5-- 6 7SIG_BLOCK 8SIG_SETMASK 9 10#define ucontext(member) offsetof (ucontext_t, member) 11#define mcontext(member) ucontext (uc_mcontext.member) 12#define mreg(reg) mcontext (gregs[REG_##reg]) 13 14oLINK ucontext (uc_link) 15oSS_SP ucontext (uc_stack.ss_sp) 16oSS_SIZE ucontext (uc_stack.ss_size) 17oGS mreg (GS) 18oFS mreg (FS) 19oEDI mreg (EDI) 20oESI mreg (ESI) 21oEBP mreg (EBP) 22oESP mreg (ESP) 23oEBX mreg (EBX) 24oEIP mreg (EIP) 25oSCRATCH1 mreg (EAX) 26oSCRATCH2 mreg (ECX) 27oSCRATCH3 mreg (EDX) 28oFPREGS mcontext (fpregs) 29oSIGMASK ucontext (uc_sigmask) 30oFPREGSMEM ucontext (__fpregs_mem) 31oSSP ucontext (__ssp) 32