move pthread types out of per-arch alltypes.h
[musl] / arch / powerpc / bits / signal.h
index 7113b2f..06efb11 100644 (file)
@@ -1,6 +1,11 @@
 #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 greg_t, gregset_t[48];
@@ -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;
@@ -60,12 +70,6 @@ typedef struct __ucontext {
        mcontext_t uc_mcontext;
 } ucontext_t;
 
-typedef struct sigaltstack {
-       void *ss_sp;
-       int ss_flags;
-       size_t ss_size;
-} stack_t;
-
 #define SA_NOCLDSTOP  1U
 #define SA_NOCLDWAIT  2U
 #define SA_SIGINFO    4U