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 4096
9 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
10 typedef unsigned long greg_t
, gregset_t
[32];
14 unsigned long sc_regs
[32];
16 unsigned long sc_extcontext
[] __attribute__((__aligned__(16)));
22 unsigned long __gregs
[32];
24 unsigned long __extcontext
[] __attribute__((__aligned__(16)));
33 typedef struct __ucontext
35 unsigned long uc_flags
;
36 struct __ucontext
*uc_link
;
40 mcontext_t uc_mcontext
;
43 #define __uc_flags uc_flags
45 #define SA_NOCLDSTOP 1
46 #define SA_NOCLDWAIT 2
48 #define SA_ONSTACK 0x08000000
49 #define SA_RESTART 0x10000000
50 #define SA_NODEFER 0x40000000
51 #define SA_RESETHAND 0x80000000
61 #define SIGIOT SIGABRT
88 #define SIGUNUSED SIGSYS