change the type of *syscallnames[] array to 'const char * const foo[]'

This commit is contained in:
jdolecek 2000-11-13 21:32:15 +00:00
parent 4a927f1e51
commit 78b866e95a
27 changed files with 54 additions and 54 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aout_exec.c,v 1.2 2000/06/06 19:04:16 soren Exp $ */
/* $NetBSD: aout_exec.c,v 1.3 2000/11/13 21:32:16 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -50,7 +50,7 @@
const char aout_emul_path[] = "/emul/aout";
extern struct sysent aout_sysent[];
#ifdef SYSCALL_DEBUG
extern char *aout_syscallnames[];
extern const char * const aout_syscallnames[];
#endif
extern char sigcode[], esigcode[];

View File

@ -1,4 +1,4 @@
/* $NetBSD: aout_syscalls.c,v 1.11 2000/08/18 19:35:16 cgd Exp $ */
/* $NetBSD: aout_syscalls.c,v 1.12 2000/11/13 21:32:16 jdolecek Exp $ */
/*
* System call names.
@ -24,7 +24,7 @@
#include <compat/aout/aout_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *aout_syscallnames[] = {
const char * const aout_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_exec.c,v 1.6 2000/06/28 15:39:26 mrg Exp $ */
/* $NetBSD: freebsd_exec.c,v 1.7 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@ -54,7 +54,7 @@
#include <compat/freebsd/freebsd_syscall.h>
extern struct sysent freebsd_sysent[];
extern char *freebsd_syscallnames[];
extern const char * const freebsd_syscallnames[];
#ifdef EXEC_AOUT
struct emul emul_freebsd_aout = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_syscalls.c,v 1.36 2000/08/18 19:35:17 cgd Exp $ */
/* $NetBSD: freebsd_syscalls.c,v 1.37 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* System call names.
@ -24,7 +24,7 @@
#include <machine/freebsd_machdep.h>
#endif /* _KERNEL && ! _LKM */
char *freebsd_syscallnames[] = {
const char * const freebsd_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpux_exec.c,v 1.16 2000/06/28 15:39:27 mrg Exp $ */
/* $NetBSD: hpux_exec.c,v 1.17 2000/11/13 21:32:17 jdolecek Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -97,7 +97,7 @@
const char hpux_emul_path[] = "/emul/hpux";
extern char sigcode[], esigcode[];
extern struct sysent hpux_sysent[];
extern char *hpux_syscallnames[];
extern const char * const hpux_syscallnames[];
extern int native_to_hpux_errno[];
static int exec_hpux_prep_nmagic __P((struct proc *, struct exec_package *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpux_syscalls.c,v 1.29 2000/08/18 19:35:18 cgd Exp $ */
/* $NetBSD: hpux_syscalls.c,v 1.30 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* System call names.
@ -22,7 +22,7 @@
#include <machine/hpux_machdep.h>
#endif /* _KERNEL && ! _LKM */
char *hpux_syscallnames[] = {
const char * const hpux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_exec.c,v 1.35 2000/08/11 22:21:41 matt Exp $ */
/* $NetBSD: ibcs2_exec.c,v 1.36 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@ -97,7 +97,7 @@ static int ibcs2_elf32_signature __P((struct proc *p, struct exec_package *,
extern struct sysent ibcs2_sysent[];
extern char *ibcs2_syscallnames[];
extern const char * const ibcs2_syscallnames[];
extern char ibcs2_sigcode[], ibcs2_esigcode[];
const char ibcs2_emul_path[] = "/emul/ibcs2";

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_syscalls.c,v 1.26 2000/08/18 19:35:18 cgd Exp $ */
/* $NetBSD: ibcs2_syscalls.c,v 1.27 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* System call names.
@ -20,7 +20,7 @@
#include <compat/ibcs2/ibcs2_statfs.h>
#endif /* _KERNEL && ! _LKM */
char *ibcs2_syscallnames[] = {
const char * const ibcs2_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_syscalls.c,v 1.22 2000/11/08 04:19:01 erh Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.23 2000/11/13 21:32:17 jdolecek Exp $ */
/*
* System call names.
@ -27,7 +27,7 @@
#include <compat/linux/linux_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *linux_syscallnames[] = {
const char * const linux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_syscalls.c,v 1.21 2000/11/01 20:43:57 jdolecek Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.22 2000/11/13 21:32:18 jdolecek Exp $ */
/*
* System call names.
@ -22,7 +22,7 @@
#include <compat/linux/linux_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *linux_syscallnames[] = {
const char * const linux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_syscalls.c,v 1.18 2000/11/01 20:43:59 jdolecek Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.19 2000/11/13 21:32:18 jdolecek Exp $ */
/*
* System call names.
@ -23,7 +23,7 @@
#include <compat/linux/linux_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *linux_syscallnames[] = {
const char * const linux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_exec_aout.c,v 1.40 2000/06/29 02:40:39 mrg Exp $ */
/* $NetBSD: linux_exec_aout.c,v 1.41 2000/11/13 21:32:18 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@ static void *linux_aout_copyargs __P((struct exec_package *,
extern char linux_sigcode[], linux_esigcode[];
extern struct sysent linux_sysent[];
extern char *linux_syscallnames[];
extern const char * const linux_syscallnames[];
int exec_linux_aout_prep_zmagic __P((struct proc *, struct exec_package *));
int exec_linux_aout_prep_nmagic __P((struct proc *, struct exec_package *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_exec_elf32.c,v 1.45 2000/06/29 02:40:39 mrg Exp $ */
/* $NetBSD: linux_exec_elf32.c,v 1.46 2000/11/13 21:32:18 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -83,7 +83,7 @@ static int ELFNAME2(linux,gcc_signature) __P((struct proc *p,
extern char linux_sigcode[], linux_esigcode[];
extern struct sysent linux_sysent[];
extern char *linux_syscallnames[];
extern const char * const linux_syscallnames[];
struct emul ELFNAMEEND(emul_linux) = {
"linux",

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_exec.c,v 1.21 2000/06/28 15:39:31 mrg Exp $ */
/* $NetBSD: netbsd32_exec.c,v 1.22 2000/11/13 21:32:18 jdolecek Exp $ */
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
/*
@ -59,7 +59,7 @@ const char netbsd32_emul_path[] = "/emul/netbsd32";
extern char netbsd32_sigcode[], netbsd32_esigcode[];
extern struct sysent netbsd32_sysent[];
#ifdef SYSCALL_DEBUG
extern char *netbsd32_syscallnames[];
extern const char * const netbsd32_syscallnames[];
#endif
void *netbsd32_copyargs __P((struct exec_package *, struct ps_strings *,
void *, void *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.16 2000/08/18 19:35:21 cgd Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.17 2000/11/13 21:32:18 jdolecek Exp $ */
/*
* System call names.
@ -25,7 +25,7 @@
#include <compat/netbsd32/netbsd32_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *netbsd32_syscallnames[] = {
const char * const netbsd32_syscallnames[] = {
"syscall", /* 0 = syscall */
"netbsd32_exit", /* 1 = netbsd32_exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_exec.c,v 1.10 1999/05/28 04:39:14 cgd Exp $ */
/* $NetBSD: osf1_exec.c,v 1.11 2000/11/13 21:32:18 jdolecek Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -69,7 +69,7 @@ static int osf1_exec_ecoff_dynamic(struct proc *p, struct exec_package *epp);
#define MAX_AUX_ENTRIES 4 /* max we'll ever push (right now) */
extern struct sysent osf1_sysent[];
extern char *osf1_syscallnames[];
extern const char * const osf1_syscallnames[];
extern void cpu_exec_ecoff_setregs __P((struct proc *, struct exec_package *,
u_long));
extern char osf1_sigcode[], osf1_esigcode[];

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_syscalls.c,v 1.35 2000/08/18 19:35:22 cgd Exp $ */
/* $NetBSD: osf1_syscalls.c,v 1.36 2000/11/13 21:32:19 jdolecek Exp $ */
/*
* System call names.
@ -19,7 +19,7 @@
#include <compat/osf1/osf1_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *osf1_syscallnames[] = {
const char * const osf1_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_exec.c,v 1.20 2000/06/28 15:39:34 mrg Exp $ */
/* $NetBSD: sunos_exec.c,v 1.21 2000/11/13 21:32:19 jdolecek Exp $ */
/*
* Copyright (c) 1993 Theo de Raadt
@ -66,7 +66,7 @@ int sunos_exec_aout_prep_omagic __P((struct proc *, struct exec_package *));
extern int nsunos_sysent;
extern struct sysent sunos_sysent[];
#ifdef SYSCALL_DEBUG
extern char *sunos_syscallnames[];
extern const char * const sunos_syscallnames[];
#endif
extern char sunos_sigcode[], sunos_esigcode[];
const char sunos_emul_path[] = "/emul/sunos";

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_syscalls.c,v 1.60 2000/08/18 19:35:23 cgd Exp $ */
/* $NetBSD: sunos_syscalls.c,v 1.61 2000/11/13 21:32:19 jdolecek Exp $ */
/*
* System call names.
@ -21,7 +21,7 @@
#include <compat/sunos/sunos_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *sunos_syscallnames[] = {
const char * const sunos_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_exec.c,v 1.32 2000/06/28 15:39:35 mrg Exp $ */
/* $NetBSD: svr4_exec.c,v 1.33 2000/11/13 21:32:19 jdolecek Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@ static void *svr4_copyargs __P((struct exec_package *, struct ps_strings *,
const char svr4_emul_path[] = "/emul/svr4";
extern char svr4_sigcode[], svr4_esigcode[];
extern struct sysent svr4_sysent[];
extern char *svr4_syscallnames[];
extern const char * const svr4_syscallnames[];
struct emul emul_svr4 = {
"svr4",

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_syscalls.c,v 1.61 2000/08/18 19:35:24 cgd Exp $ */
/* $NetBSD: svr4_syscalls.c,v 1.62 2000/11/13 21:32:19 jdolecek Exp $ */
/*
* System call names.
@ -27,7 +27,7 @@
#include <compat/svr4/svr4_acl.h>
#endif /* _KERNEL && ! _LKM */
char *svr4_syscallnames[] = {
const char * const svr4_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultrix_syscalls.c,v 1.37 2000/08/18 19:35:25 cgd Exp $ */
/* $NetBSD: ultrix_syscalls.c,v 1.38 2000/11/13 21:32:19 jdolecek Exp $ */
/*
* System call names.
@ -18,7 +18,7 @@
#include <compat/ultrix/ultrix_syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *ultrix_syscallnames[] = {
const char * const ultrix_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_elf32.c,v 1.55 2000/11/08 05:47:56 chs Exp $ */
/* $NetBSD: exec_elf32.c,v 1.56 2000/11/13 21:32:15 jdolecek Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -120,7 +120,7 @@ static int ELFNAME2(netbsd,probe)(struct proc *, struct exec_package *,
extern char sigcode[], esigcode[];
#ifdef SYSCALL_DEBUG
extern char *syscallnames[];
extern const char * const syscallnames[];
#endif
struct emul ELFNAMEEND(emul_netbsd) = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: init_main.c,v 1.182 2000/10/29 18:38:47 he Exp $ */
/* $NetBSD: init_main.c,v 1.183 2000/11/13 21:32:15 jdolecek Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou. All rights reserved.
@ -146,7 +146,7 @@ void main(void);
extern char sigcode[], esigcode[];
#ifdef SYSCALL_DEBUG
extern char *syscallnames[];
extern const char * const syscallnames[];
#endif
struct emul emul_netbsd = {

View File

@ -1,5 +1,5 @@
#! /bin/sh -
# $NetBSD: makesyscalls.sh,v 1.37 2000/08/18 19:33:30 cgd Exp $
# $NetBSD: makesyscalls.sh,v 1.38 2000/11/13 21:32:16 jdolecek Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@ -177,7 +177,7 @@ NR == 1 {
printf "#if defined(_KERNEL) && !defined(_LKM)\n" > sysnames
printf "#endif /* _KERNEL && ! _LKM */\n\n" > sysnamesbottom
printf "char *%s[] = {\n",namesname > sysnamesbottom
printf "const char * const %s[] = {\n",namesname > sysnamesbottom
printf " * created from%s\n */\n\n", $0 > sysnumhdr

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscalls.c,v 1.111 2000/08/18 19:35:25 cgd Exp $ */
/* $NetBSD: syscalls.c,v 1.112 2000/11/13 21:32:16 jdolecek Exp $ */
/*
* System call names.
@ -23,7 +23,7 @@
#include <sys/syscallargs.h>
#endif /* _KERNEL && ! _LKM */
char *syscallnames[] = {
const char * const syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.106 2000/11/07 12:41:53 jdolecek Exp $ */
/* $NetBSD: proc.h,v 1.107 2000/11/13 21:32:19 jdolecek Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -92,7 +92,7 @@ struct emul {
int e_nosys; /* Offset of the nosys() syscall */
int e_nsysent; /* Number of system call entries */
struct sysent *e_sysent; /* System call array */
char **e_syscallnames; /* System call name array */
const char * const *e_syscallnames; /* System call name array */
int e_arglen; /* Extra argument size in words */
/* Copy arguments on the new stack */
void *(*e_copyargs) __P((struct exec_package *, struct ps_strings *,