From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932486AbZD0TLc (ORCPT ); Mon, 27 Apr 2009 15:11:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932135AbZD0TJo (ORCPT ); Mon, 27 Apr 2009 15:09:44 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:38267 "EHLO vms173015pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760311AbZD0TJn convert rfc822-to-8bit (ORCPT ); Mon, 27 Apr 2009 15:09:43 -0400 From: Gene Heskett Organization: Organization? Not detectable Date: Mon, 27 Apr 2009 15:09:21 -0400 User-Agent: KMail/1.11.2 (Linux/2.6.30-rc3; KDE/4.2.2; i686; ; ) MIME-version: 1.0 Subject: Fwd: To: linux-kernel@vger.kernel.org Content-Type: Text/Plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-disposition: inline Message-id: <200904271509.21557.gene.heskett@verizon.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ---------- Forwarded Message ---------- Subject: Date: Monday 27 April 2009 From: arnd@arndb.de To: "no To-header on input" >>From arnd@arndb.de Mon Apr 27 16:28:40 2009 References: <20090427142010.587518220@arndb.de> User-Agent: quilt/0.46-1 Date: Mon, 27 Apr 2009 16:20:12 +0200 From: arnd@arndb.de To: linux-kernel@vger.kernel.org Cc: john.williams@petalogix.com, monstr@monstr.eu, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, liqin.chen@sunplusct.com, Sam Ravnborg , Remis Lima Baima Subject: [RFC 02/17] asm-generic: rename signal.h to signal-defs.h Content-Disposition: inline; filename=0007-asm-generic-add-a-complete- signal.h.patch X-Provags-ID: V01U2FsdGVkX1/ygXtkAefHotL8QCKAKvyM1WbG9g14kvVXE36 nbBf1wnHE0E7jHI4xtLbBpL9oSBfUgYjVr11LL4xGkORJ8Hh5o pOnOucNiPGhKOlXTc/+8Q== The existing asm-generic/signal.h is incomplete and included by some architectures. New architectures should be able to use a generic version, so rename the existing file and change all users, which lets us add the new file. Signed-off-by: Arnd Bergmann Signed-off-by: Remis Lima Baima --- arch/alpha/include/asm/signal.h | 2 1 + 1 - 0 ! arch/arm/include/asm/signal.h | 2 1 + 1 - 0 ! arch/avr32/include/asm/signal.h | 2 1 + 1 - 0 ! arch/blackfin/include/asm/signal.h | 2 1 + 1 - 0 ! arch/cris/include/asm/signal.h | 2 1 + 1 - 0 ! arch/h8300/include/asm/signal.h | 2 1 + 1 - 0 ! arch/ia64/include/asm/signal.h | 2 1 + 1 - 0 ! arch/m32r/include/asm/signal.h | 2 1 + 1 - 0 ! arch/m68k/include/asm/signal.h | 2 1 + 1 - 0 ! arch/microblaze/include/asm/signal.h | 2 1 + 1 - 0 ! arch/mips/include/asm/signal.h | 2 1 + 1 - 0 ! arch/mn10300/include/asm/signal.h | 2 1 + 1 - 0 ! arch/powerpc/include/asm/signal.h | 2 1 + 1 - 0 ! arch/s390/include/asm/signal.h | 2 1 + 1 - 0 ! arch/sh/include/asm/signal.h | 2 1 + 1 - 0 ! arch/sparc/include/asm/signal.h | 2 1 + 1 - 0 ! arch/x86/include/asm/signal.h | 2 1 + 1 - 0 ! include/asm-generic/Kbuild | 2 1 + 1 - 0 ! include/asm-generic/signal-defs.h | 28 28 + 0 - 0 ! include/asm-generic/signal.h | 28 0 + 28 - 0 ! 20 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 include/asm-generic/signal-defs.h Index: linux-2.6/arch/alpha/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/alpha/include/asm/signal.h +++ linux-2.6/arch/alpha/include/asm/signal.h @@ -111,7 +111,7 @@ typedef unsigned long sigset_t; #define SIG_UNBLOCK 2 /* for unblocking signals */ #define SIG_SETMASK 3 /* for setting the signal mask */ -#include +#include #ifdef __KERNEL__ struct osf_sigaction { Index: linux-2.6/arch/arm/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/arm/include/asm/signal.h +++ linux-2.6/arch/arm/include/asm/signal.h @@ -111,7 +111,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/avr32/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/avr32/include/asm/signal.h +++ linux-2.6/arch/avr32/include/asm/signal.h @@ -112,7 +112,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/blackfin/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/blackfin/include/asm/signal.h +++ linux-2.6/arch/blackfin/include/asm/signal.h @@ -104,7 +104,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/cris/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/cris/include/asm/signal.h +++ linux-2.6/arch/cris/include/asm/signal.h @@ -106,7 +106,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/h8300/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/h8300/include/asm/signal.h +++ linux-2.6/arch/h8300/include/asm/signal.h @@ -105,7 +105,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/ia64/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/ia64/include/asm/signal.h +++ linux-2.6/arch/ia64/include/asm/signal.h @@ -114,7 +114,7 @@ #endif /* __KERNEL__ */ -#include +#include # ifndef __ASSEMBLY__ Index: linux-2.6/arch/m68k/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/m68k/include/asm/signal.h +++ linux-2.6/arch/m68k/include/asm/signal.h @@ -103,7 +103,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/mips/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/mips/include/asm/signal.h +++ linux-2.6/arch/mips/include/asm/signal.h @@ -109,7 +109,7 @@ typedef unsigned long old_sigset_t; /* #define SIG_UNBLOCK 2 /* for unblocking signals */ #define SIG_SETMASK 3 /* for setting the signal mask */ -#include +#include struct sigaction { unsigned int sa_flags; Index: linux-2.6/arch/mn10300/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/mn10300/include/asm/signal.h +++ linux-2.6/arch/mn10300/include/asm/signal.h @@ -115,7 +115,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/powerpc/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/powerpc/include/asm/signal.h +++ linux-2.6/arch/powerpc/include/asm/signal.h @@ -94,7 +94,7 @@ typedef struct { #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include struct old_sigaction { __sighandler_t sa_handler; Index: linux-2.6/arch/s390/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/s390/include/asm/signal.h +++ linux-2.6/arch/s390/include/asm/signal.h @@ -115,7 +115,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/sh/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/sh/include/asm/signal.h +++ linux-2.6/arch/sh/include/asm/signal.h @@ -106,7 +106,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/sparc/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/sparc/include/asm/signal.h +++ linux-2.6/arch/sparc/include/asm/signal.h @@ -176,7 +176,7 @@ struct sigstack { #define SA_STATIC_ALLOC 0x8000 #endif -#include +#include struct __new_sigaction { __sighandler_t sa_handler; Index: linux-2.6/arch/x86/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/x86/include/asm/signal.h +++ linux-2.6/arch/x86/include/asm/signal.h @@ -117,7 +117,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifndef __ASSEMBLY__ Index: linux-2.6/include/asm-generic/signal-defs.h =================================================================== --- /dev/null +++ linux-2.6/include/asm-generic/signal-defs.h @@ -0,0 +1,28 @@ +#ifndef __ASM_GENERIC_SIGNAL_DEFS_H +#define __ASM_GENERIC_SIGNAL_DEFS_H + +#include + +#ifndef SIG_BLOCK +#define SIG_BLOCK 0 /* for blocking signals */ +#endif +#ifndef SIG_UNBLOCK +#define SIG_UNBLOCK 1 /* for unblocking signals */ +#endif +#ifndef SIG_SETMASK +#define SIG_SETMASK 2 /* for setting the signal mask */ +#endif + +#ifndef __ASSEMBLY__ +typedef void __signalfn_t(int); +typedef __signalfn_t __user *__sighandler_t; + +typedef void __restorefn_t(void); +typedef __restorefn_t __user *__sigrestore_t; + +#define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */ +#define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */ +#define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ +#endif + +#endif /* __ASM_GENERIC_SIGNAL_DEFS_H */ Index: linux-2.6/include/asm-generic/signal.h =================================================================== --- linux-2.6.orig/include/asm-generic/signal.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef __ASM_GENERIC_SIGNAL_H -#define __ASM_GENERIC_SIGNAL_H - -#include - -#ifndef SIG_BLOCK -#define SIG_BLOCK 0 /* for blocking signals */ -#endif -#ifndef SIG_UNBLOCK -#define SIG_UNBLOCK 1 /* for unblocking signals */ -#endif -#ifndef SIG_SETMASK -#define SIG_SETMASK 2 /* for setting the signal mask */ -#endif - -#ifndef __ASSEMBLY__ -typedef void __signalfn_t(int); -typedef __signalfn_t __user *__sighandler_t; - -typedef void __restorefn_t(void); -typedef __restorefn_t __user *__sigrestore_t; - -#define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */ -#define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */ -#define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ -#endif - -#endif /* __ASM_GENERIC_SIGNAL_H */ Index: linux-2.6/arch/m32r/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/m32r/include/asm/signal.h +++ linux-2.6/arch/m32r/include/asm/signal.h @@ -107,7 +107,7 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 -#include +#include #ifdef __KERNEL__ struct old_sigaction { Index: linux-2.6/arch/microblaze/include/asm/signal.h =================================================================== --- linux-2.6.orig/arch/microblaze/include/asm/signal.h +++ linux-2.6/arch/microblaze/include/asm/signal.h @@ -90,7 +90,7 @@ # ifndef __ASSEMBLY__ # include -# include +# include /* Avoid too many header ordering problems. */ struct siginfo; Index: linux-2.6/include/asm-generic/Kbuild =================================================================== --- linux-2.6.orig/include/asm-generic/Kbuild +++ linux-2.6/include/asm-generic/Kbuild @@ -4,7 +4,7 @@ header-y += fcntl.h header-y += ioctl.h header-y += mman.h header-y += poll.h -header-y += signal.h +header-y += signal-defs.h header-y += statfs.h unifdef-y += int-l64.h -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ------------------------------------------------------- -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) "The four building blocks of the universe are fire, water, gravel and vinyl." -- Dave Barry