Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch SIGTRAMP_VALID() should not pollute the user namespace



details:   https://anonhg.NetBSD.org/src/rev/ef74c8c93d49
branches:  trunk
changeset: 566493:ef74c8c93d49
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon May 10 21:51:49 2004 +0000

description:
SIGTRAMP_VALID() should not pollute the user namespace

diffstat:

 sys/arch/alpha/include/signal.h |  4 +++-
 sys/arch/amd64/include/signal.h |  4 +++-
 sys/arch/arm/include/signal.h   |  4 +++-
 sys/arch/i386/include/signal.h  |  4 +++-
 sys/arch/m68k/include/signal.h  |  4 +++-
 sys/arch/mips/include/signal.h  |  4 +++-
 sys/arch/pc532/include/signal.h |  4 +++-
 sys/arch/sh3/include/signal.h   |  4 +++-
 sys/arch/sparc/include/signal.h |  4 +++-
 9 files changed, 27 insertions(+), 9 deletions(-)

diffs (203 lines):

diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/alpha/include/signal.h
--- a/sys/arch/alpha/include/signal.h   Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/alpha/include/signal.h   Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.11 2004/03/26 21:39:57 drochner Exp $ */
+/* $NetBSD: signal.h,v 1.12 2004/05/10 21:51:49 drochner Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -34,11 +34,13 @@
 
 typedef long   sig_atomic_t;
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define SIGTRAMP_VALID(vers)   ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
 #endif
+#endif
 
 #if defined(_NETBSD_SOURCE)
 /*
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/amd64/include/signal.h
--- a/sys/arch/amd64/include/signal.h   Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/amd64/include/signal.h   Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.6 2004/03/25 15:27:26 drochner Exp $      */
+/*     $NetBSD: signal.h,v 1.7 2004/05/10 21:51:49 drochner Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -46,7 +46,9 @@
 #include <machine/fpu.h>
 #include <machine/mcontext.h>
 
+#ifdef _KERNEL
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
+#endif
 
 #endif /* _NETBSD_SOURCE */
 #endif /* !_AMD64_SIGNAL_H_ */
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/arm/include/signal.h
--- a/sys/arch/arm/include/signal.h     Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/arm/include/signal.h     Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.7 2004/03/26 21:39:57 drochner Exp $      */
+/*     $NetBSD: signal.h,v 1.8 2004/05/10 21:51:50 drochner Exp $      */
 
 /*
  * Copyright (c) 1994-1996 Mark Brinicombe.
@@ -54,11 +54,13 @@
 
 #if defined(_NETBSD_SOURCE)
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define SIGTRAMP_VALID(vers)   ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
 #endif
+#endif
 
 #ifndef _LOCORE
 /*
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/i386/include/signal.h
--- a/sys/arch/i386/include/signal.h    Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/i386/include/signal.h    Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.25 2004/03/26 21:39:57 drochner Exp $     */
+/*     $NetBSD: signal.h,v 1.26 2004/05/10 21:51:50 drochner Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -38,11 +38,13 @@
 
 typedef int sig_atomic_t;
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define SIGTRAMP_VALID(vers)   ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
 #endif
+#endif
 
 #if defined(_NETBSD_SOURCE)
 /*
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/m68k/include/signal.h
--- a/sys/arch/m68k/include/signal.h    Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/m68k/include/signal.h    Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.17 2004/03/26 21:39:57 drochner Exp $     */
+/*     $NetBSD: signal.h,v 1.18 2004/05/10 21:51:50 drochner Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -40,11 +40,13 @@
 
 #if defined(_NETBSD_SOURCE)
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define SIGTRAMP_VALID(vers)   ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
 #endif
+#endif
 
 /*
  * Get the "code" values
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/mips/include/signal.h
--- a/sys/arch/mips/include/signal.h    Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/mips/include/signal.h    Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.23 2004/03/26 21:39:57 drochner Exp $     */
+/*     $NetBSD: signal.h,v 1.24 2004/05/10 21:51:50 drochner Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,11 +41,13 @@
 
 #include <machine/cdefs.h>     /* for API selection */
 
+#ifdef _KERNEL
 #ifdef COMPAT_16 
 #define SIGTRAMP_VALID(vers) ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers) ((vers) == 2)
 #endif 
+#endif
 
 #if !defined(__ASSEMBLER__)
 
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/pc532/include/signal.h
--- a/sys/arch/pc532/include/signal.h   Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/pc532/include/signal.h   Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.13 2004/03/26 21:39:57 drochner Exp $     */
+/*     $NetBSD: signal.h,v 1.14 2004/05/10 21:51:50 drochner Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -38,11 +38,13 @@
 
 typedef int sig_atomic_t;
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define        SIGTRAMP_VALID(vers) ((unsigned)(vers) <= 2)
 #else
 #define        SIGTRAMP_VALID(vers) ((vers) == 2)
 #endif
+#endif
 
 #if defined(_NETBSD_SOURCE)
 /*
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/sh3/include/signal.h
--- a/sys/arch/sh3/include/signal.h     Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/sh3/include/signal.h     Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.10 2004/03/26 21:39:57 drochner Exp $     */
+/*     $NetBSD: signal.h,v 1.11 2004/05/10 21:51:50 drochner Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -38,11 +38,13 @@
 
 typedef int sig_atomic_t;
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define SIGTRAMP_VALID(vers)   ((unsigned)(vers) <= 2)
 #else
 #define SIGTRAMP_VALID(vers)   ((vers) == 2)
 #endif
+#endif
 
 #if defined(_NETBSD_SOURCE)
 
diff -r 440b19e18d53 -r ef74c8c93d49 sys/arch/sparc/include/signal.h
--- a/sys/arch/sparc/include/signal.h   Mon May 10 20:47:29 2004 +0000
+++ b/sys/arch/sparc/include/signal.h   Mon May 10 21:51:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.19 2004/03/26 21:39:57 drochner Exp $ */
+/*     $NetBSD: signal.h,v 1.20 2004/05/10 21:51:50 drochner Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -95,11 +95,13 @@
        sigset_t        sc_mask;        /* signal mask to restore (new style) */
 };
 
+#ifdef _KERNEL
 #ifdef COMPAT_16
 #define        SIGTRAMP_VALID(vers)    ((unsigned)(vers) <= 2)
 #else
 #define        SIGTRAMP_VALID(vers)    ((vers) == 2)
 #endif
+#endif
 
 #else /* _LOCORE */
 /* XXXXX These values don't work for _LP64 */



Home | Main Index | Thread Index | Old Index