1#include <inttypes.h> 2#include <signal.h> 3#include <stddef.h> 4#include <sys/ucontext.h> 5 6SIG_BLOCK 7SIG_SETMASK 8 9-- Offsets of the fields in the ucontext_t structure. 10#define ucontext(member) offsetof (ucontext_t, member) 11#define mcontext(member) ucontext (uc_mcontext.member) 12 13UCONTEXT_FLAGS ucontext (uc_flags) 14UCONTEXT_LINK ucontext (uc_link) 15UCONTEXT_STACK ucontext (uc_stack) 16UCONTEXT_MCONTEXT ucontext (uc_mcontext) 17UCONTEXT_SIGMASK ucontext (uc_sigmask) 18 19UCONTEXT_REGSPACE ucontext (uc_regspace) 20 21MCONTEXT_TRAP_NO mcontext (trap_no) 22MCONTEXT_ERROR_CODE mcontext (error_code) 23MCONTEXT_OLDMASK mcontext (oldmask) 24MCONTEXT_ARM_R0 mcontext (arm_r0) 25MCONTEXT_ARM_R4 mcontext (arm_r4) 26MCONTEXT_ARM_SP mcontext (arm_sp) 27MCONTEXT_ARM_LR mcontext (arm_lr) 28MCONTEXT_ARM_PC mcontext (arm_pc) 29MCONTEXT_ARM_CPSR mcontext (arm_cpsr) 30MCONTEXT_FAULT_ADDRESS mcontext (fault_address) 31