1#include <stddef.h> 2#include <signal.h> 3#include <sys/ucontext.h> 4 5-- 6 7SIG_BLOCK 8SIG_SETMASK 9 10 11-- Offsets of the fields in the ucontext_t structure. 12#define ucontext(member) offsetof (ucontext_t, member) 13#define mcontext(member) ucontext (uc_mcontext.member) 14 15UCONTEXT_LINK ucontext (uc_link) 16UCONTEXT_STACK ucontext (uc_stack) 17UCONTEXT_STACK_SP ucontext (uc_stack.ss_sp) 18UCONTEXT_STACK_FLAGS ucontext (uc_stack.ss_flags) 19UCONTEXT_STACK_SIZE ucontext (uc_stack.ss_size) 20UCONTEXT_SIGMASK ucontext (uc_sigmask) 21UCONTEXT_MCONTEXT ucontext (uc_mcontext) 22SIGCONTEXT_SIGNAL mcontext (signal) 23SIGCONTEXT_HANDLER mcontext (handler) 24SIGCONTEXT_OLDMASK mcontext (oldmask) 25SIGCONTEXT_PT_REGS mcontext (regs) 26SIGCONTEXT_GP_REGS mcontext (gp_regs) 27SIGCONTEXT_FP_REGS mcontext (fp_regs) 28SIGCONTEXT_V_REGS_PTR mcontext (v_regs) 29SIGCONTEXT_V_RESERVE mcontext (vmx_reserve) 30