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)
49 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
50 typedef unsigned long greg_t
;
51 typedef unsigned long gregset_t
[32];
52 typedef union __riscv_mc_fp_state fpregset_t
;
65 typedef struct __ucontext
67 unsigned long uc_flags
;
68 struct __ucontext
*uc_link
;
71 mcontext_t uc_mcontext
;
74 #define SA_NOCLDSTOP 1
75 #define SA_NOCLDWAIT 2
77 #define SA_ONSTACK 0x08000000
78 #define SA_RESTART 0x10000000
79 #define SA_NODEFER 0x40000000
80 #define SA_RESETHAND 0x80000000
81 #define SA_RESTORER 0x04000000
91 #define SIGIOT SIGABRT
115 #define SIGPOLL SIGIO
118 #define SIGUNUSED SIGSYS