X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fi386%2Fbits%2Fsignal.h;h=60a0bb5b3504fd1841c4e66dd2b1374cef4741e0;hp=8827efda082c6cb48bf02ec0e61a0cd75435ef49;hb=ad2fe25041622b6cf426b0f98af0e52c2c9727f6;hpb=e9417fffb39c299e556c5ad0c1545f0c02618e3c diff --git a/arch/i386/bits/signal.h b/arch/i386/bits/signal.h index 8827efda..60a0bb5b 100644 --- a/arch/i386/bits/signal.h +++ b/arch/i386/bits/signal.h @@ -1,6 +1,40 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +struct __fpstate { + unsigned long __x[7]; + unsigned char __y[80]; + unsigned long __z; +}; + +typedef struct { + unsigned long __gregs[19]; + void *__fpregs; + unsigned long __oldmask, __cr2; +} mcontext_t; + +typedef struct __ucontext { + unsigned long uc_flags; + struct __ucontext *uc_link; + stack_t uc_stack; + mcontext_t uc_mcontext; + sigset_t uc_sigmask; + struct __fpstate __fpregs_mem; +} ucontext_t; + +#ifdef _GNU_SOURCE +struct sigcontext { + unsigned short gs, __gsh, fs, __fsh, es, __esh, ds, __dsh; + unsigned long edi, esi, ebp, esp, ebx, edx, ecx, eax; + unsigned long trapno, err, eip; + unsigned short cs, __csh; + unsigned long eflags, esp_at_signal; + unsigned short ss, __ssh; + struct __fpstate *fpstate; + unsigned long oldmask, cr2; +}; +#endif + struct __siginfo { int si_signo;