1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
11 unsigned long __gregs[19];
13 unsigned long __oldmask, __cr2;
16 typedef struct __ucontext {
17 unsigned long uc_flags;
18 struct __ucontext *uc_link;
20 mcontext_t uc_mcontext;
22 struct __fpstate __fpregs_mem;
27 unsigned short gs, __gsh, fs, __fsh, es, __esh, ds, __dsh;
28 unsigned long edi, esi, ebp, esp, ebx, edx, ecx, eax;
29 unsigned long trapno, err, eip;
30 unsigned short cs, __csh;
31 unsigned long eflags, esp_at_signal;
32 unsigned short ss, __ssh;
33 struct __fpstate *fpstate;
34 unsigned long oldmask, cr2;
45 char __pad[128 - 3*sizeof(int)];
49 union sigval si_sigval;
52 unsigned int si_timer1;
53 unsigned int si_timer2;
72 #define si_pid __si_fields.__sigchld.si_pid
73 #define si_uid __si_fields.__sigchld.si_uid
74 #define si_status __si_fields.__sigchld.si_status
75 #define si_utime __si_fields.__sigchld.si_utime
76 #define si_stime __si_fields.__sigchld.si_stime
77 #define si_value __si_fields.__rt.si_sigval
78 #define si_addr __si_fields.__sigfault.si_addr
79 #define si_band __si_fields.__sigpoll.si_band
81 #define SI_ASYNCNL (-60)
84 #define SI_ASYNCIO (-4)
109 #define SEGV_MAPERR 1
110 #define SEGV_ACCERR 2
119 #define CLD_TRAPPED 4
120 #define CLD_STOPPED 5
121 #define CLD_CONTINUED 6
123 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
134 #define MINSIGSTKSZ 2048
135 #define SIGSTKSZ 8192
138 #define SA_NOCLDSTOP 1
139 #define SA_NOCLDWAIT 2
141 #define SA_ONSTACK 0x08000000
142 #define SA_RESTART 0x10000000
143 #define SA_NODEFER 0x40000000
144 #define SA_RESETHAND 0x80000000
145 #define SA_RESTORER 0x04000000
148 #define SIG_UNBLOCK 1
149 #define SIG_SETMASK 2
157 #define SIG_ERR ((void (*)(int))-1)
158 #define SIG_DFL ((void (*)(int)) 0)
159 #define SIG_IGN ((void (*)(int)) 1)
160 #define SIG_HOLD ((void (*)(int)) 2)
194 #define SIGUNUSED SIGSYS