Declare extern syscallnames in a header.

This commit is contained in:
pooka 2009-06-02 23:21:37 +00:00
parent 1f751faed6
commit b89c189be7
6 changed files with 18 additions and 26 deletions

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.15 2008/10/21 12:16:59 ad Exp $");
#include <machine/userret.h>
#ifdef TRAPDEBUG
extern const char * const syscallnames[];
int startsysc = 0;
#define TDB(a) if (startsysc) printf a
#else

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.23 2008/11/19 18:36:02 ad Exp $"
#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 *);

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: mach_exec.c,v 1.71 2008/11/19 18:36:05 ad Exp $");
#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 int mach_cold = 1; /* Have we initialized COMPAT_MACH structures? */
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

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.22 2008/11/19 18:36:05 ad Exp $");
#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 @@ struct uvm_object *emul_pecoff_object;
void syscall(void);
#endif
#ifdef SYSCALL_DEBUG
extern const char * const syscallnames[];
#endif
struct emul emul_pecoff = {
"pecoff",
"/emul/pecoff",

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.288 2009/03/29 01:02:50 mrg Exp $");
#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 @@ struct exec_entry {
const struct execsw *ex_sw;
};
#ifdef SYSCALL_DEBUG
extern const char * const syscallnames[];
#endif
#ifndef __HAVE_SYSCALL_INTERN
void syscall(void);
#endif

View File

@ -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 @@ sy_call(const struct sysent *sy, struct lwp *l, const void *uap,
return error;
}
/* inclusion in the kernel currently depends on SYSCALL_DEBUG */
extern const char * const syscallnames[];
#endif /* _SYS_SYSCALLVAR_H_ */