Module Name:    src
Committed By:   pooka
Date:           Tue Jun  2 23:21:38 UTC 2009

Modified Files:
        src/sys/arch/vax/vax: syscall.c
        src/sys/compat/aoutm68k: aoutm68k_exec.c
        src/sys/compat/mach: mach_exec.c
        src/sys/compat/pecoff: pecoff_emul.c
        src/sys/kern: kern_exec.c
        src/sys/sys: syscallvar.h

Log Message:
Declare extern syscallnames in a header.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/vax/vax/syscall.c
cvs rdiff -u -r1.23 -r1.24 src/sys/compat/aoutm68k/aoutm68k_exec.c
cvs rdiff -u -r1.71 -r1.72 src/sys/compat/mach/mach_exec.c
cvs rdiff -u -r1.22 -r1.23 src/sys/compat/pecoff/pecoff_emul.c
cvs rdiff -u -r1.288 -r1.289 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.4 -r1.5 src/sys/sys/syscallvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/vax/syscall.c
diff -u src/sys/arch/vax/vax/syscall.c:1.15 src/sys/arch/vax/vax/syscall.c:1.16
--- src/sys/arch/vax/vax/syscall.c:1.15	Tue Oct 21 12:16:59 2008
+++ src/sys/arch/vax/vax/syscall.c	Tue Jun  2 23:21:37 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: syscall.c,v 1.15 2008/10/21 12:16:59 ad Exp $     */
+/*	$NetBSD: syscall.c,v 1.16 2009/06/02 23:21:37 pooka Exp $     */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -33,7 +33,7 @@
  /* All bugs are subject to removal without further notice */
 		
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.15 2008/10/21 12:16:59 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.16 2009/06/02 23:21:37 pooka Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_sa.h"
@@ -63,7 +63,6 @@
 #include <machine/userret.h>
 
 #ifdef TRAPDEBUG
-extern const char * const syscallnames[];
 int startsysc = 0;
 #define TDB(a) if (startsysc) printf a
 #else

Index: src/sys/compat/aoutm68k/aoutm68k_exec.c
diff -u src/sys/compat/aoutm68k/aoutm68k_exec.c:1.23 src/sys/compat/aoutm68k/aoutm68k_exec.c:1.24
--- src/sys/compat/aoutm68k/aoutm68k_exec.c:1.23	Wed Nov 19 18:36:02 2008
+++ src/sys/compat/aoutm68k/aoutm68k_exec.c	Tue Jun  2 23:21:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: aoutm68k_exec.c,v 1.23 2008/11/19 18:36:02 ad Exp $	*/
+/*	$NetBSD: aoutm68k_exec.c,v 1.24 2009/06/02 23:21:38 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.23 2008/11/19 18:36:02 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.24 2009/06/02 23:21:38 pooka Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -42,15 +42,13 @@
 #include <sys/proc.h>
 #include <sys/exec.h>
 #include <sys/signalvar.h>
+#include <sys/syscallvar.h>
 
 #include <uvm/uvm_extern.h>
 
 #include <compat/aoutm68k/aoutm68k_syscall.h>
 
 extern struct sysent aoutm68k_sysent[];
-#ifdef SYSCALL_DEBUG
-extern const char * const syscallnames[];
-#endif
 extern char sigcode[], esigcode[];
 void aoutm68k_syscall_intern(struct proc *);
 

Index: src/sys/compat/mach/mach_exec.c
diff -u src/sys/compat/mach/mach_exec.c:1.71 src/sys/compat/mach/mach_exec.c:1.72
--- src/sys/compat/mach/mach_exec.c:1.71	Wed Nov 19 18:36:05 2008
+++ src/sys/compat/mach/mach_exec.c	Tue Jun  2 23:21:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mach_exec.c,v 1.71 2008/11/19 18:36:05 ad Exp $	 */
+/*	$NetBSD: mach_exec.c,v 1.72 2009/06/02 23:21:38 pooka Exp $	 */
 
 /*-
  * Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_exec.c,v 1.71 2008/11/19 18:36:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_exec.c,v 1.72 2009/06/02 23:21:38 pooka Exp $");
 
 #include "opt_syscall_debug.h"
 
@@ -43,6 +43,7 @@
 #include <sys/malloc.h>
 
 #include <sys/syscall.h>
+#include <sys/syscallvar.h>
 
 #include <uvm/uvm_extern.h>
 #include <uvm/uvm_param.h>
@@ -58,9 +59,6 @@
 static void mach_init(void);
 
 extern struct sysent sysent[];
-#ifdef SYSCALL_DEBUG
-extern const char * const syscallnames[];
-#endif
 #ifndef __HAVE_SYSCALL_INTERN
 void syscall(void);
 #else

Index: src/sys/compat/pecoff/pecoff_emul.c
diff -u src/sys/compat/pecoff/pecoff_emul.c:1.22 src/sys/compat/pecoff/pecoff_emul.c:1.23
--- src/sys/compat/pecoff/pecoff_emul.c:1.22	Wed Nov 19 18:36:05 2008
+++ src/sys/compat/pecoff/pecoff_emul.c	Tue Jun  2 23:21:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: pecoff_emul.c,v 1.22 2008/11/19 18:36:05 ad Exp $	*/
+/*	$NetBSD: pecoff_emul.c,v 1.23 2009/06/02 23:21:38 pooka Exp $	*/
 
 /*
  * Copyright (c) 2000 Masaru OKI
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.22 2008/11/19 18:36:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.23 2009/06/02 23:21:38 pooka Exp $");
 
 /*#define DEBUG_PECOFF*/
 
@@ -53,6 +53,7 @@
 #include <sys/mount.h>
 #include <sys/exec.h>
 #include <sys/syscall.h>
+#include <sys/syscallvar.h>
 #include <sys/signalvar.h>
 #include <sys/resourcevar.h>
 #include <sys/stat.h>
@@ -76,10 +77,6 @@
 void	syscall(void);
 #endif
 
-#ifdef SYSCALL_DEBUG
-extern const char * const syscallnames[];
-#endif
-
 struct emul emul_pecoff = {
 	"pecoff",
 	"/emul/pecoff",

Index: src/sys/kern/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.288 src/sys/kern/kern_exec.c:1.289
--- src/sys/kern/kern_exec.c:1.288	Sun Mar 29 01:02:50 2009
+++ src/sys/kern/kern_exec.c	Tue Jun  2 23:21:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_exec.c,v 1.288 2009/03/29 01:02:50 mrg Exp $	*/
+/*	$NetBSD: kern_exec.c,v 1.289 2009/06/02 23:21:38 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.288 2009/03/29 01:02:50 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.289 2009/06/02 23:21:38 pooka Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_modular.h"
@@ -96,6 +96,7 @@
 #include <sys/module.h>
 #include <sys/sa.h>
 #include <sys/savar.h>
+#include <sys/syscallvar.h>
 #include <sys/syscallargs.h>
 #if NVERIEXEC > 0
 #include <sys/verified_exec.h>
@@ -139,10 +140,6 @@
 	const struct execsw	*ex_sw;
 };
 
-#ifdef SYSCALL_DEBUG
-extern const char * const syscallnames[];
-#endif
-
 #ifndef __HAVE_SYSCALL_INTERN
 void	syscall(void);
 #endif

Index: src/sys/sys/syscallvar.h
diff -u src/sys/sys/syscallvar.h:1.4 src/sys/sys/syscallvar.h:1.5
--- src/sys/sys/syscallvar.h:1.4	Wed Nov 19 18:36:10 2008
+++ src/sys/sys/syscallvar.h	Tue Jun  2 23:21:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: syscallvar.h,v 1.4 2008/11/19 18:36:10 ad Exp $	*/
+/*	$NetBSD: syscallvar.h,v 1.5 2009/06/02 23:21:38 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -64,4 +64,7 @@
 	return error;
 }
 
+/* inclusion in the kernel currently depends on SYSCALL_DEBUG */
+extern const char * const syscallnames[];
+
 #endif	/* _SYS_SYSCALLVAR_H_ */

Reply via email to