From 78b866e95ae9a09b907434eb62d2fd757cb558d9 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 13 Nov 2000 21:32:15 +0000 Subject: [PATCH] change the type of *syscallnames[] array to 'const char * const foo[]' --- 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(-) diff --git a/sys/compat/aout/aout_exec.c b/sys/compat/aout/aout_exec.c index 0906c04086eb..7cacbde2a503 100644 --- a/sys/compat/aout/aout_exec.c +++ b/sys/compat/aout/aout_exec.c @@ -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 --git a/sys/compat/aout/aout_syscalls.c b/sys/compat/aout/aout_syscalls.c index 482ea9d416fb..842638dfb45c 100644 --- a/sys/compat/aout/aout_syscalls.c +++ b/sys/compat/aout/aout_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *aout_syscallnames[] = { +const char * const aout_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/freebsd/freebsd_exec.c b/sys/compat/freebsd/freebsd_exec.c index d1dfaa5fcd5f..8d78624bb529 100644 --- a/sys/compat/freebsd/freebsd_exec.c +++ b/sys/compat/freebsd/freebsd_exec.c @@ -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 extern struct sysent freebsd_sysent[]; -extern char *freebsd_syscallnames[]; +extern const char * const freebsd_syscallnames[]; #ifdef EXEC_AOUT struct emul emul_freebsd_aout = { diff --git a/sys/compat/freebsd/freebsd_syscalls.c b/sys/compat/freebsd/freebsd_syscalls.c index de6a5566dbb6..9bc3e05f2201 100644 --- a/sys/compat/freebsd/freebsd_syscalls.c +++ b/sys/compat/freebsd/freebsd_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *freebsd_syscallnames[] = { +const char * const freebsd_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/hpux/hpux_exec.c b/sys/compat/hpux/hpux_exec.c index 6468fa8c0655..6b3c6264138d 100644 --- a/sys/compat/hpux/hpux_exec.c +++ b/sys/compat/hpux/hpux_exec.c @@ -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 --git a/sys/compat/hpux/hpux_syscalls.c b/sys/compat/hpux/hpux_syscalls.c index 4e882e13cf41..c44dd2829c6d 100644 --- a/sys/compat/hpux/hpux_syscalls.c +++ b/sys/compat/hpux/hpux_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *hpux_syscallnames[] = { +const char * const hpux_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/ibcs2/ibcs2_exec.c b/sys/compat/ibcs2/ibcs2_exec.c index 9678ce7dd8f1..9c2408d9a7c0 100644 --- a/sys/compat/ibcs2/ibcs2_exec.c +++ b/sys/compat/ibcs2/ibcs2_exec.c @@ -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"; diff --git a/sys/compat/ibcs2/ibcs2_syscalls.c b/sys/compat/ibcs2/ibcs2_syscalls.c index 0caf2a591330..5193546a99e9 100644 --- a/sys/compat/ibcs2/ibcs2_syscalls.c +++ b/sys/compat/ibcs2/ibcs2_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *ibcs2_syscallnames[] = { +const char * const ibcs2_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/linux/arch/alpha/linux_syscalls.c b/sys/compat/linux/arch/alpha/linux_syscalls.c index 3d6fe7d907a5..e63912055e8f 100644 --- a/sys/compat/linux/arch/alpha/linux_syscalls.c +++ b/sys/compat/linux/arch/alpha/linux_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *linux_syscallnames[] = { +const char * const linux_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c index df8ea18e1f63..1d9efad161c6 100644 --- a/sys/compat/linux/arch/i386/linux_syscalls.c +++ b/sys/compat/linux/arch/i386/linux_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *linux_syscallnames[] = { +const char * const linux_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/linux/arch/m68k/linux_syscalls.c b/sys/compat/linux/arch/m68k/linux_syscalls.c index 3d928f47eb6c..7262342321eb 100644 --- a/sys/compat/linux/arch/m68k/linux_syscalls.c +++ b/sys/compat/linux/arch/m68k/linux_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *linux_syscallnames[] = { +const char * const linux_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/linux/common/linux_exec_aout.c b/sys/compat/linux/common/linux_exec_aout.c index e314d7b6a581..644249970567 100644 --- a/sys/compat/linux/common/linux_exec_aout.c +++ b/sys/compat/linux/common/linux_exec_aout.c @@ -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 *)); diff --git a/sys/compat/linux/common/linux_exec_elf32.c b/sys/compat/linux/common/linux_exec_elf32.c index 9c7385067c89..e975abbf4432 100644 --- a/sys/compat/linux/common/linux_exec_elf32.c +++ b/sys/compat/linux/common/linux_exec_elf32.c @@ -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", diff --git a/sys/compat/netbsd32/netbsd32_exec.c b/sys/compat/netbsd32/netbsd32_exec.c index c36fafbe55d7..63cfddce6f59 100644 --- a/sys/compat/netbsd32/netbsd32_exec.c +++ b/sys/compat/netbsd32/netbsd32_exec.c @@ -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 *)); diff --git a/sys/compat/netbsd32/netbsd32_syscalls.c b/sys/compat/netbsd32/netbsd32_syscalls.c index 9a8b3bad1c43..8617df3dbdce 100644 --- a/sys/compat/netbsd32/netbsd32_syscalls.c +++ b/sys/compat/netbsd32/netbsd32_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *netbsd32_syscallnames[] = { +const char * const netbsd32_syscallnames[] = { "syscall", /* 0 = syscall */ "netbsd32_exit", /* 1 = netbsd32_exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/osf1/osf1_exec.c b/sys/compat/osf1/osf1_exec.c index 6fff5bcc6e5d..a473e9bff459 100644 --- a/sys/compat/osf1/osf1_exec.c +++ b/sys/compat/osf1/osf1_exec.c @@ -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[]; diff --git a/sys/compat/osf1/osf1_syscalls.c b/sys/compat/osf1/osf1_syscalls.c index d35476f22f81..efcbbedd6ce5 100644 --- a/sys/compat/osf1/osf1_syscalls.c +++ b/sys/compat/osf1/osf1_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *osf1_syscallnames[] = { +const char * const osf1_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/sunos/sunos_exec.c b/sys/compat/sunos/sunos_exec.c index ef5ed32a1206..034dc3f926e5 100644 --- a/sys/compat/sunos/sunos_exec.c +++ b/sys/compat/sunos/sunos_exec.c @@ -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"; diff --git a/sys/compat/sunos/sunos_syscalls.c b/sys/compat/sunos/sunos_syscalls.c index e28212737b23..42eecad72613 100644 --- a/sys/compat/sunos/sunos_syscalls.c +++ b/sys/compat/sunos/sunos_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *sunos_syscallnames[] = { +const char * const sunos_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/svr4/svr4_exec.c b/sys/compat/svr4/svr4_exec.c index fb432b8a3c3f..b1c8ce756856 100644 --- a/sys/compat/svr4/svr4_exec.c +++ b/sys/compat/svr4/svr4_exec.c @@ -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", diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c index 2ad32b4f1caf..87261bcae307 100644 --- a/sys/compat/svr4/svr4_syscalls.c +++ b/sys/compat/svr4/svr4_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *svr4_syscallnames[] = { +const char * const svr4_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/compat/ultrix/ultrix_syscalls.c b/sys/compat/ultrix/ultrix_syscalls.c index 7dedc9957b44..770c1f35d170 100644 --- a/sys/compat/ultrix/ultrix_syscalls.c +++ b/sys/compat/ultrix/ultrix_syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *ultrix_syscallnames[] = { +const char * const ultrix_syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/kern/exec_elf32.c b/sys/kern/exec_elf32.c index 4ea22ab03c0f..19a1eb962ab2 100644 --- a/sys/kern/exec_elf32.c +++ b/sys/kern/exec_elf32.c @@ -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) = { diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 15c55c479392..bc8e17eb7966 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -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 = { diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 5aa873630739..325c66499474 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -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 diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index dadc22d79d5e..314fd8b39046 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -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 #endif /* _KERNEL && ! _LKM */ -char *syscallnames[] = { +const char * const syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ diff --git a/sys/sys/proc.h b/sys/sys/proc.h index ea45ae25f198..f1e1b4bf9937 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -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 *,