X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fbits%2Fsignal.h;h=c073cd219846f33947f370cbe26734a5d2e8acca;hb=5e642b5a2395893873affa2a121a694943b3f4e0;hp=a5c311ba3a56c88a8dec3983e5fbfc8dff12dd96;hpb=57a0b82441e8d03a93965e2a373588721374ed78;p=musl diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h index a5c311ba..c073cd21 100644 --- a/arch/powerpc/bits/signal.h +++ b/arch/powerpc/bits/signal.h @@ -3,20 +3,7 @@ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -struct sigcontext -{ - unsigned long _unused[4]; - int signal; - unsigned long handler; - unsigned long oldmask; - void *regs; - gregset_t gp_regs; - fpregset_t fp_regs; - vrregset_t *v_regs; - long vmx_reserve[33+33+32+1]; /* 33=34 for ppc64 */ -}; - -typedef unsigned long gregset_t[48]; +typedef unsigned long greg_t, gregset_t[48]; typedef struct { double fpregs[32]; @@ -31,6 +18,15 @@ typedef struct { unsigned vscr; } vrregset_t; +struct sigcontext +{ + unsigned long _unused[4]; + int signal; + unsigned long handler; + unsigned long oldmask; + void *regs; +}; + typedef struct { gregset_t gregs; fpregset_t fpregs; @@ -59,14 +55,9 @@ typedef struct __ucontext { stack_t uc_stack; int uc_pad[7]; mcontext_t *uc_regs; - sigset_t uc_sigmask; - - int uc_maskext[30]; int uc_pad2[3]; - mcontext_t uc_mcontext; - char uc_reg_space[sizeof(mcontext_t) + 12]; } ucontext_t; #define SA_NOCLDSTOP 1U @@ -86,7 +77,7 @@ typedef struct __ucontext { #define SIGILL 4 #define SIGTRAP 5 #define SIGABRT 6 -#define SIGIOT 6 +#define SIGIOT SIGABRT #define SIGBUS 7 #define SIGFPE 8 #define SIGKILL 9 @@ -114,3 +105,5 @@ typedef struct __ucontext { #define SIGPWR 30 #define SIGSYS 31 #define SIGUNUSED SIGSYS + +#define _NSIG 65