Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys change the type of *syscallnames[] array to 'const char ...
details: https://anonhg.NetBSD.org/src/rev/e7e652341c1e
branches: trunk
changeset: 499165:e7e652341c1e
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Nov 13 21:32:15 2000 +0000
description:
change the type of *syscallnames[] array to 'const char * const foo[]'
diffstat:
sys/compat/aout/aout_exec.c | 4 ++--
sys/compat/aout/aout_syscalls.c | 4 ++--
sys/compat/freebsd/freebsd_exec.c | 4 ++--
sys/compat/freebsd/freebsd_syscalls.c | 4 ++--
sys/compat/hpux/hpux_exec.c | 4 ++--
sys/compat/hpux/hpux_syscalls.c | 4 ++--
sys/compat/ibcs2/ibcs2_exec.c | 4 ++--
sys/compat/ibcs2/ibcs2_syscalls.c | 4 ++--
sys/compat/linux/arch/alpha/linux_syscalls.c | 4 ++--
sys/compat/linux/arch/i386/linux_syscalls.c | 4 ++--
sys/compat/linux/arch/m68k/linux_syscalls.c | 4 ++--
sys/compat/linux/common/linux_exec_aout.c | 4 ++--
sys/compat/linux/common/linux_exec_elf32.c | 4 ++--
sys/compat/netbsd32/netbsd32_exec.c | 4 ++--
sys/compat/netbsd32/netbsd32_syscalls.c | 4 ++--
sys/compat/osf1/osf1_exec.c | 4 ++--
sys/compat/osf1/osf1_syscalls.c | 4 ++--
sys/compat/sunos/sunos_exec.c | 4 ++--
sys/compat/sunos/sunos_syscalls.c | 4 ++--
sys/compat/svr4/svr4_exec.c | 4 ++--
sys/compat/svr4/svr4_syscalls.c | 4 ++--
sys/compat/ultrix/ultrix_syscalls.c | 4 ++--
sys/kern/exec_elf32.c | 4 ++--
sys/kern/init_main.c | 4 ++--
sys/kern/makesyscalls.sh | 4 ++--
sys/kern/syscalls.c | 4 ++--
sys/sys/proc.h | 4 ++--
27 files changed, 54 insertions(+), 54 deletions(-)
diffs (truncated from 487 to 300 lines):
diff -r 2e55343377ce -r e7e652341c1e sys/compat/aout/aout_exec.c
--- a/sys/compat/aout/aout_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/aout/aout_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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[];
diff -r 2e55343377ce -r e7e652341c1e sys/compat/aout/aout_syscalls.c
--- a/sys/compat/aout/aout_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/aout/aout_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/freebsd/freebsd_exec.c
--- a/sys/compat/freebsd/freebsd_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/freebsd/freebsd_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 = {
diff -r 2e55343377ce -r e7e652341c1e sys/compat/freebsd/freebsd_syscalls.c
--- a/sys/compat/freebsd/freebsd_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/freebsd/freebsd_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/hpux/hpux_exec.c
--- a/sys/compat/hpux/hpux_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/hpux/hpux_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 *));
diff -r 2e55343377ce -r e7e652341c1e sys/compat/hpux/hpux_syscalls.c
--- a/sys/compat/hpux/hpux_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/hpux/hpux_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/ibcs2/ibcs2_exec.c
--- a/sys/compat/ibcs2/ibcs2_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 @@
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";
diff -r 2e55343377ce -r e7e652341c1e sys/compat/ibcs2/ibcs2_syscalls.c
--- a/sys/compat/ibcs2/ibcs2_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/ibcs2/ibcs2_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/linux/arch/i386/linux_syscalls.c
--- a/sys/compat/linux/arch/i386/linux_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/linux/arch/m68k/linux_syscalls.c
--- a/sys/compat/linux/arch/m68k/linux_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/linux/common/linux_exec_aout.c
--- a/sys/compat/linux/common/linux_exec_aout.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/linux/common/linux_exec_aout.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 @@
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 *));
diff -r 2e55343377ce -r e7e652341c1e sys/compat/linux/common/linux_exec_elf32.c
--- a/sys/compat/linux/common/linux_exec_elf32.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/linux/common/linux_exec_elf32.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 @@
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",
diff -r 2e55343377ce -r e7e652341c1e sys/compat/netbsd32/netbsd32_exec.c
--- a/sys/compat/netbsd32/netbsd32_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 @@
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 *));
diff -r 2e55343377ce -r e7e652341c1e sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
diff -r 2e55343377ce -r e7e652341c1e sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/osf1/osf1_exec.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 @@
#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[];
diff -r 2e55343377ce -r e7e652341c1e sys/compat/osf1/osf1_syscalls.c
--- a/sys/compat/osf1/osf1_syscalls.c Mon Nov 13 21:10:57 2000 +0000
+++ b/sys/compat/osf1/osf1_syscalls.c Mon Nov 13 21:32:15 2000 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index