X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fx86_64%2Fbits%2Fsignal.h;h=73b0128404fa9de7c5a6b4baf19e2d0b9b78c4e3;hp=64ece19b946a8e5b37423ca0d356a231c9bbbfd5;hb=ad2fe25041622b6cf426b0f98af0e52c2c9727f6;hpb=44460c6d1eb1233f6598229d787d179c095b053f diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h index 64ece19b..73b01284 100644 --- a/arch/x86_64/bits/signal.h +++ b/arch/x86_64/bits/signal.h @@ -1,6 +1,38 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +struct __fpstate { + unsigned long __x[4]; + unsigned char __y[384]; + unsigned long __z[12]; +}; + +typedef struct { + unsigned long __gregs[23]; + void *__fpregs; + unsigned long __reserved1[8]; +} 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 long r8, r9, r10, r11, r12, r13, r14, r15; + unsigned long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags; + unsigned short cs, gs, fs, __pad0; + unsigned long err, trapno, oldmask, cr2; + struct __fpstate *fpstate; + unsigned long __reserved1[8]; +}; +#endif + struct __siginfo { int si_signo;