]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/arch/sh/bits/signal.h
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 int greg_t
, gregset_t
[16];
11 typedef int freg_t
, fpregset_t
[16];
12 typedef struct sigcontext
{
13 unsigned long oldmask
;
14 unsigned long sc_regs
[16];
15 unsigned long sc_pc
, sc_pr
, sc_sr
;
16 unsigned long sc_gbr
, sc_mach
, sc_macl
;
17 unsigned long sc_fpregs
[16];
18 unsigned long sc_xfpregs
[16];
19 unsigned int sc_fpscr
, sc_fpul
, sc_ownedfp
;
23 unsigned long __regs
[58];
33 typedef struct __ucontext
{
34 unsigned long uc_flags
;
35 struct __ucontext
*uc_link
;
37 mcontext_t uc_mcontext
;
41 #define SA_NOCLDSTOP 1
42 #define SA_NOCLDWAIT 2
44 #define SA_ONSTACK 0x08000000
45 #define SA_RESTART 0x10000000
46 #define SA_NODEFER 0x40000000
47 #define SA_RESETHAND 0x80000000
48 #define SA_RESTORER 0x04000000
58 #define SIGIOT SIGABRT
85 #define SIGUNUSED SIGSYS