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 unsigned long greg_t, gregset_t[38];
6 typedef struct sigcontext
9 unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
10 unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
11 unsigned long r16, r17, r18, r19, r20, r21, r22, r23;
12 unsigned long r24, r25, r26, r27, r28, r29, r30, r31;
13 unsigned long pc, msr, ear, esr, fsr;
16 unsigned long oldmask;
20 unsigned long __regs[39];
24 typedef struct __ucontext {
25 unsigned long uc_flags;
26 struct __ucontext *uc_link;
28 mcontext_t uc_mcontext;
32 typedef struct sigaltstack {
38 #define SA_NOCLDSTOP 1
39 #define SA_NOCLDWAIT 2
41 #define SA_ONSTACK 0x08000000
42 #define SA_RESTART 0x10000000
43 #define SA_NODEFER 0x40000000
44 #define SA_RESETHAND 0x80000000
45 #define SA_RESTORER 0x04000000
55 #define SIGIOT SIGABRT
82 #define SIGUNUSED SIGSYS