1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
6 unsigned char __y[384];
11 unsigned long __gregs[23];
13 unsigned long __reserved1[8];
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 long r8, r9, r10, r11, r12, r13, r14, r15;
28 unsigned long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags;
29 unsigned short cs, gs, fs, __pad0;
30 unsigned long err, trapno, oldmask, cr2;
31 struct __fpstate *fpstate;
32 unsigned long __reserved1[8];
43 int __pad[(128 - 4*sizeof(int)) / sizeof(int)];
51 char __pad[sizeof(uid_t) - sizeof(int)];
52 union sigval si_sigval;
58 union sigval si_sigval;
78 #define si_pid __si_fields.__sigchld.si_pid
79 #define si_uid __si_fields.__sigchld.si_uid
80 #define si_status __si_fields.__sigchld.si_status
81 #define si_utime __si_fields.__sigchld.si_utime
82 #define si_stime __si_fields.__sigchld.si_stime
83 #define si_value __si_fields.__rt.si_sigval
84 #define si_addr __si_fields.__sigfault.si_addr
85 #define si_band __si_fields.__sigpoll.si_band
87 #define SI_ASYNCNL (-60)
90 #define SI_ASYNCIO (-4)
115 #define SEGV_MAPERR 1
116 #define SEGV_ACCERR 2
125 #define CLD_TRAPPED 4
126 #define CLD_STOPPED 5
127 #define CLD_CONTINUED 6
129 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
140 #define MINSIGSTKSZ 2048
141 #define SIGSTKSZ 8192
144 #define SA_NOCLDSTOP 1
145 #define SA_NOCLDWAIT 2
147 #define SA_ONSTACK 0x08000000
148 #define SA_RESTART 0x10000000
149 #define SA_NODEFER 0x40000000
150 #define SA_RESETHAND 0x80000000
151 #define SA_RESTORER 0x04000000
154 #define SIG_UNBLOCK 1
155 #define SIG_SETMASK 2
163 #define SIG_ERR ((void (*)(int))-1)
164 #define SIG_DFL ((void (*)(int)) 0)
165 #define SIG_IGN ((void (*)(int)) 1)
166 #define SIG_HOLD ((void (*)(int)) 2)
200 #define SIGUNUSED SIGSYS