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 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
10 typedef unsigned long greg_t;
11 typedef unsigned long gregset_t[32];
12 typedef union __riscv_mc_fp_state fpregset_t;
15 typedef unsigned long __riscv_mc_gp_state[32];
17 struct __riscv_mc_f_ext_state {
22 struct __riscv_mc_d_ext_state {
23 unsigned long long __f[32];
27 struct __riscv_mc_q_ext_state {
28 unsigned long long __f[64] __attribute__((aligned(16)));
30 unsigned int __reserved[3];
33 union __riscv_mc_fp_state {
34 struct __riscv_mc_f_ext_state __f;
35 struct __riscv_mc_d_ext_state __d;
36 struct __riscv_mc_q_ext_state __q;
39 typedef struct mcontext_t {
40 __riscv_mc_gp_state __gregs;
41 union __riscv_mc_fp_state __fpregs;
50 typedef struct ucontext_t
52 unsigned long uc_flags;
53 struct ucontext_t *uc_link;
56 mcontext_t uc_mcontext;
59 #define SA_NOCLDSTOP 1
60 #define SA_NOCLDWAIT 2
62 #define SA_ONSTACK 0x08000000
63 #define SA_RESTART 0x10000000
64 #define SA_NODEFER 0x40000000
65 #define SA_RESETHAND 0x80000000
66 #define SA_RESTORER 0x04000000
76 #define SIGIOT SIGABRT
100 #define SIGPOLL SIGIO
103 #define SIGUNUSED SIGSYS