1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
4 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
5 #define MINSIGSTKSZ 2048
9 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
10 typedef unsigned long greg_t
, gregset_t
[38];
11 typedef struct sigcontext
{
13 unsigned long r0
, r1
, r2
, r3
, r4
, r5
, r6
, r7
;
14 unsigned long r8
, r9
, r10
, r11
, r12
, r13
, r14
, r15
;
15 unsigned long r16
, r17
, r18
, r19
, r20
, r21
, r22
, r23
;
16 unsigned long r24
, r25
, r26
, r27
, r28
, r29
, r30
, r31
;
17 unsigned long pc
, msr
, ear
, esr
, fsr
;
20 unsigned long oldmask
;
24 unsigned long __regs
[39];
34 typedef struct __ucontext
{
35 unsigned long uc_flags
;
36 struct __ucontext
*uc_link
;
38 mcontext_t uc_mcontext
;
42 #define SA_NOCLDSTOP 1
43 #define SA_NOCLDWAIT 2
45 #define SA_ONSTACK 0x08000000
46 #define SA_RESTART 0x10000000
47 #define SA_NODEFER 0x40000000
48 #define SA_RESETHAND 0x80000000
58 #define SIGIOT SIGABRT
85 #define SIGUNUSED SIGSYS