]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/arch/i386/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
19 #define REG_EDI REG_EDI
21 #define REG_ESI REG_ESI
23 #define REG_EBP REG_EBP
25 #define REG_ESP REG_ESP
27 #define REG_EBX REG_EBX
29 #define REG_EDX REG_EDX
30 enum { REG_ECX
= 10 };
31 #define REG_ECX REG_ECX
32 enum { REG_EAX
= 11 };
33 #define REG_EAX REG_EAX
34 enum { REG_TRAPNO
= 12 };
35 #define REG_TRAPNO REG_TRAPNO
36 enum { REG_ERR
= 13 };
37 #define REG_ERR REG_ERR
38 enum { REG_EIP
= 14 };
39 #define REG_EIP REG_EIP
42 enum { REG_EFL
= 16 };
43 #define REG_EFL REG_EFL
44 enum { REG_UESP
= 17 };
45 #define REG_UESP REG_UESP
50 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
51 typedef int greg_t
, gregset_t
[19];
52 typedef struct _fpstate
{
53 unsigned long cw
, sw
, tag
, ipoff
, cssel
, dataoff
, datasel
;
55 unsigned short significand
[4], exponent
;
60 unsigned short gs
, __gsh
, fs
, __fsh
, es
, __esh
, ds
, __dsh
;
61 unsigned long edi
, esi
, ebp
, esp
, ebx
, edx
, ecx
, eax
;
62 unsigned long trapno
, err
, eip
;
63 unsigned short cs
, __csh
;
64 unsigned long eflags
, esp_at_signal
;
65 unsigned short ss
, __ssh
;
66 struct _fpstate
*fpstate
;
67 unsigned long oldmask
, cr2
;
72 unsigned long oldmask
, cr2
;
86 typedef struct __ucontext
{
87 unsigned long uc_flags
;
88 struct __ucontext
*uc_link
;
90 mcontext_t uc_mcontext
;
92 unsigned long __fpregs_mem
[28];
95 #define SA_NOCLDSTOP 1
96 #define SA_NOCLDWAIT 2
98 #define SA_ONSTACK 0x08000000
99 #define SA_RESTART 0x10000000
100 #define SA_NODEFER 0x40000000
101 #define SA_RESETHAND 0x80000000
102 #define SA_RESTORER 0x04000000
112 #define SIGIOT SIGABRT
139 #define SIGUNUSED SIGSYS