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 typedef unsigned long __riscv_mc_gp_state
[32];
11 struct __riscv_mc_f_ext_state
{
16 struct __riscv_mc_d_ext_state
{
17 unsigned long long __f
[32];
21 struct __riscv_mc_q_ext_state
{
22 unsigned long long __f
[64] __attribute__((aligned(16)));
24 unsigned int __reserved
[3];
27 union __riscv_mc_fp_state
{
28 struct __riscv_mc_f_ext_state __f
;
29 struct __riscv_mc_d_ext_state __d
;
30 struct __riscv_mc_q_ext_state __q
;
33 typedef struct mcontext_t
{
34 __riscv_mc_gp_state __gregs
;
35 union __riscv_mc_fp_state __fpregs
;
38 #if defined(_GNU_SOURCE)
47 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
48 typedef unsigned long greg_t
;
49 typedef unsigned long gregset_t
[32];
50 typedef union __riscv_mc_fp_state fpregset_t
;
63 typedef struct __ucontext
65 unsigned long uc_flags
;
66 struct __ucontext
*uc_link
;
69 mcontext_t uc_mcontext
;
72 #define SA_NOCLDSTOP 1
73 #define SA_NOCLDWAIT 2
75 #define SA_ONSTACK 0x08000000
76 #define SA_RESTART 0x10000000
77 #define SA_NODEFER 0x40000000
78 #define SA_RESETHAND 0x80000000
79 #define SA_RESTORER 0x04000000
89 #define SIGIOT SIGABRT
113 #define SIGPOLL SIGIO
116 #define SIGUNUSED SIGSYS