X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fi386%2Fbits%2Fsignal.h;h=7d8d18711317700a10f22e12f878cd1e2c03520a;hb=bd5f221eaa16fcc13f050201883428afa3a9d0c0;hp=29455aec34fe525ca351f88b1ee3916bccdddb51;hpb=a8da6c2f287037cbacc65578a268f355760eaf8e;p=musl diff --git a/arch/i386/bits/signal.h b/arch/i386/bits/signal.h index 29455aec..7d8d1871 100644 --- a/arch/i386/bits/signal.h +++ b/arch/i386/bits/signal.h @@ -1,6 +1,28 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#ifdef _GNU_SOURCE +#define REG_GS 0 +#define REG_FS 1 +#define REG_ES 2 +#define REG_DS 3 +#define REG_EDI 4 +#define REG_ESI 5 +#define REG_EBP 6 +#define REG_ESP 7 +#define REG_EBX 8 +#define REG_EDX 9 +#define REG_ECX 10 +#define REG_EAX 11 +#define REG_TRAPNO 12 +#define REG_ERR 13 +#define REG_EIP 14 +#define REG_CS 15 +#define REG_EFL 16 +#define REG_UESP 17 +#define REG_SS 18 +#endif + #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) typedef int greg_t, gregset_t[19]; typedef struct _fpstate { @@ -40,6 +62,12 @@ typedef struct __ucontext { unsigned long __fpregs_mem[28]; } ucontext_t; +typedef struct sigaltstack { + void *ss_sp; + int ss_flags; + size_t ss_size; +} stack_t; + #define SA_NOCLDSTOP 1 #define SA_NOCLDWAIT 2 #define SA_SIGINFO 4 @@ -57,6 +85,7 @@ typedef struct __ucontext { #define SIGILL 4 #define SIGTRAP 5 #define SIGABRT 6 +#define SIGIOT SIGABRT #define SIGBUS 7 #define SIGFPE 8 #define SIGKILL 9 @@ -86,3 +115,4 @@ typedef struct __ucontext { #define SIGUNUSED SIGSYS #define _NSIG 65 +