X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fbits%2Fsignal.h;h=06efb11cf271326301b90156ada7afa4a9912430;hb=12817793301398241b6cb00c740f0d3ca41076e9;hp=7ee38fbaaf93b83d2b2067ee1439904ee3f157d3;hpb=98f56b12ceddba183c4fdba881ec753bbeea4e9f;p=musl diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h index 7ee38fba..06efb11c 100644 --- a/arch/powerpc/bits/signal.h +++ b/arch/powerpc/bits/signal.h @@ -1,9 +1,14 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define MINSIGSTKSZ 4096 +#define SIGSTKSZ 10240 +#endif + #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -typedef unsigned long gregset_t[48]; +typedef unsigned long greg_t, gregset_t[48]; typedef struct { double fpregs[32]; @@ -18,8 +23,7 @@ typedef struct { unsigned vscr; } vrregset_t; -struct sigcontext -{ +struct sigcontext { unsigned long _unused[4]; int signal; unsigned long handler; @@ -49,6 +53,12 @@ typedef struct { #endif +struct sigaltstack { + void *ss_sp; + int ss_flags; + size_t ss_size; +}; + typedef struct __ucontext { unsigned long uc_flags; struct __ucontext *uc_link; @@ -77,7 +87,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