1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
4 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
5 typedef int greg_t, gregset_t[18];
6 typedef struct sigcontext
8 unsigned long trap_no, error_code, oldmask;
9 unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
10 unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
11 unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
12 unsigned long arm_ip, arm_sp, arm_lr, arm_pc;
13 unsigned long arm_cpsr, fault_address;
17 unsigned long __regs[21];
27 typedef struct __ucontext {
28 unsigned long uc_flags;
29 struct __ucontext *uc_link;
31 mcontext_t uc_mcontext;
33 unsigned long long uc_regspace[64];
36 #define SA_NOCLDSTOP 1
37 #define SA_NOCLDWAIT 2
39 #define SA_ONSTACK 0x08000000
40 #define SA_RESTART 0x10000000
41 #define SA_NODEFER 0x40000000
42 #define SA_RESETHAND 0x80000000
43 #define SA_RESTORER 0x04000000
53 #define SIGIOT SIGABRT
80 #define SIGUNUSED SIGSYS