move IPC_STAT definition to a new bits/ipcstat.h file
[musl] / arch / arm / bits / signal.h
index 6d91f70..3c78985 100644 (file)
@@ -1,10 +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 2048
+#define SIGSTKSZ 8192
+#endif
+
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef int greg_t, gregset_t[18];
-typedef struct sigcontext
-{
+typedef struct sigcontext {
        unsigned long trap_no, error_code, oldmask;
        unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
        unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
@@ -18,6 +22,12 @@ typedef struct {
 } mcontext_t;
 #endif
 
+struct sigaltstack {
+       void *ss_sp;
+       int ss_flags;
+       size_t ss_size;
+};
+
 typedef struct __ucontext {
        unsigned long uc_flags;
        struct __ucontext *uc_link;
@@ -27,12 +37,6 @@ typedef struct __ucontext {
        unsigned long long uc_regspace[64];
 } ucontext_t;
 
-typedef struct sigaltstack {
-       void *ss_sp;
-       int ss_flags;
-       size_t ss_size;
-} stack_t;
-
 #define SA_NOCLDSTOP  1
 #define SA_NOCLDWAIT  2
 #define SA_SIGINFO    4