summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-03-18 23:12:40 -0400
committerRich Felker <dalias@aerifal.cx>2014-03-18 23:12:40 -0400
commitbd5f221eaa16fcc13f050201883428afa3a9d0c0 (patch)
tree6087e2f8744927a23112275b2fa46a96a77a7e2f /arch
parent25faa2034de38f7d8cc919e61e55e7067584077d (diff)
downloadmusl-bd5f221eaa16fcc13f050201883428afa3a9d0c0.tar.gz
musl-bd5f221eaa16fcc13f050201883428afa3a9d0c0.tar.bz2
musl-bd5f221eaa16fcc13f050201883428afa3a9d0c0.tar.xz
musl-bd5f221eaa16fcc13f050201883428afa3a9d0c0.zip
move signal.h definition of stack_t to arch-specific bits
it's different at least on mips. mips version will be fixed in a separate commit to show the change.
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/bits/signal.h6
-rw-r--r--arch/i386/bits/signal.h6
-rw-r--r--arch/microblaze/bits/signal.h6
-rw-r--r--arch/mips/bits/signal.h6
-rw-r--r--arch/powerpc/bits/signal.h6
-rw-r--r--arch/sh/bits/signal.h6
-rw-r--r--arch/x32/bits/signal.h6
-rw-r--r--arch/x86_64/bits/signal.h6
8 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/bits/signal.h b/arch/arm/bits/signal.h
index a658ef63..6d91f70f 100644
--- a/arch/arm/bits/signal.h
+++ b/arch/arm/bits/signal.h
@@ -27,6 +27,12 @@ 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
diff --git a/arch/i386/bits/signal.h b/arch/i386/bits/signal.h
index 75844e5b..7d8d1871 100644
--- a/arch/i386/bits/signal.h
+++ b/arch/i386/bits/signal.h
@@ -62,6 +62,12 @@ typedef struct __ucontext {
unsigned long __fpregs_mem[28];
} 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
diff --git a/arch/microblaze/bits/signal.h b/arch/microblaze/bits/signal.h
index ba711c8c..730ab90b 100644
--- a/arch/microblaze/bits/signal.h
+++ b/arch/microblaze/bits/signal.h
@@ -29,6 +29,12 @@ typedef struct __ucontext {
sigset_t uc_sigmask;
} 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
diff --git a/arch/mips/bits/signal.h b/arch/mips/bits/signal.h
index f26c37da..d09558fe 100644
--- a/arch/mips/bits/signal.h
+++ b/arch/mips/bits/signal.h
@@ -46,6 +46,12 @@ typedef struct __ucontext {
sigset_t uc_sigmask;
} ucontext_t;
+typedef struct sigaltstack {
+ void *ss_sp;
+ int ss_flags;
+ size_t ss_size;
+} stack_t;
+
#define SA_NOCLDSTOP 1
#define SA_NOCLDWAIT 0x10000
#define SA_SIGINFO 8
diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h
index c073cd21..7113b2ff 100644
--- a/arch/powerpc/bits/signal.h
+++ b/arch/powerpc/bits/signal.h
@@ -60,6 +60,12 @@ 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
diff --git a/arch/sh/bits/signal.h b/arch/sh/bits/signal.h
index 905ae3ac..bb2b9fc5 100644
--- a/arch/sh/bits/signal.h
+++ b/arch/sh/bits/signal.h
@@ -27,6 +27,12 @@ typedef struct __ucontext {
sigset_t uc_sigmask;
} 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
diff --git a/arch/x32/bits/signal.h b/arch/x32/bits/signal.h
index ecbb8139..67056c9e 100644
--- a/arch/x32/bits/signal.h
+++ b/arch/x32/bits/signal.h
@@ -69,6 +69,12 @@ typedef struct __ucontext {
unsigned long long __fpregs_mem[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
diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h
index d5f01ced..910e4ecb 100644
--- a/arch/x86_64/bits/signal.h
+++ b/arch/x86_64/bits/signal.h
@@ -69,6 +69,12 @@ typedef struct __ucontext {
unsigned long __fpregs_mem[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