From 849badb7cb50461d97936fb9fd23817d64e2ac4a Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Tue, 28 May 2002 05:51:30 -0700 Subject: [PATCH] consolidate arch specific copy_siginfo_to_user This patch moves a version of copy_siginfo_to_user that is common to ten of our architectures into the gerneic code and allows the other architectures to override it. I suspect more of the remaining architectures will be able to use it as well once it is fixed (patch to follow). --- include/asm-alpha/siginfo.h | 1 + include/asm-cris/siginfo.h | 1 + include/asm-ia64/siginfo.h | 1 + include/asm-mips64/siginfo.h | 1 + include/asm-parisc/siginfo.h | 1 + include/asm-sparc/siginfo.h | 1 + include/asm-sparc64/siginfo.h | 1 + 7 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/asm-alpha/siginfo.h b/include/asm-alpha/siginfo.h index b6ff2471d9df..5e5e59d81429 100644 --- a/include/asm-alpha/siginfo.h +++ b/include/asm-alpha/siginfo.h @@ -227,6 +227,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); #endif /* __KERNEL__ */ diff --git a/include/asm-cris/siginfo.h b/include/asm-cris/siginfo.h index d843ace9c962..6938a2b738c8 100644 --- a/include/asm-cris/siginfo.h +++ b/include/asm-cris/siginfo.h @@ -226,6 +226,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); #endif /* __KERNEL__ */ diff --git a/include/asm-ia64/siginfo.h b/include/asm-ia64/siginfo.h index bfe08f5097ee..0fba20e4d47c 100644 --- a/include/asm-ia64/siginfo.h +++ b/include/asm-ia64/siginfo.h @@ -271,6 +271,7 @@ copy_siginfo (siginfo_t *to, siginfo_t *from) memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); extern int copy_siginfo_from_user(siginfo_t *to, siginfo_t *from); diff --git a/include/asm-mips64/siginfo.h b/include/asm-mips64/siginfo.h index 0a10716d6ab9..2c5233efb6d9 100644 --- a/include/asm-mips64/siginfo.h +++ b/include/asm-mips64/siginfo.h @@ -248,6 +248,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); #endif /* __KERNEL__ */ diff --git a/include/asm-parisc/siginfo.h b/include/asm-parisc/siginfo.h index 349b614eca38..6c41fb2f8e56 100644 --- a/include/asm-parisc/siginfo.h +++ b/include/asm-parisc/siginfo.h @@ -228,6 +228,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); #endif /* __KERNEL__ */ diff --git a/include/asm-sparc/siginfo.h b/include/asm-sparc/siginfo.h index 7ea5b45db59e..302e2bcb8139 100644 --- a/include/asm-sparc/siginfo.h +++ b/include/asm-sparc/siginfo.h @@ -236,6 +236,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); #endif /* __KERNEL__ */ diff --git a/include/asm-sparc64/siginfo.h b/include/asm-sparc64/siginfo.h index daaf3beff68d..12187839d1cf 100644 --- a/include/asm-sparc64/siginfo.h +++ b/include/asm-sparc64/siginfo.h @@ -311,6 +311,7 @@ extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from) memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld)); } +#define HAVE_ARCH_COPY_SIGINFO_TO_USER extern int copy_siginfo_to_user(siginfo_t *to, siginfo_t *from); extern int copy_siginfo_to_user32(siginfo_t32 *to, siginfo_t *from); -- cgit v1.2.3