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) 24oEDX mreg (EDX) 25oECX mreg (ECX) 26oEAX mreg (EAX) 27oEIP mreg (EIP) 28oFPREGS mcontext (fpregs) 29oSIGMASK ucontext (uc_sigmask) 30