diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2001-01-18 20:28:15 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2001-01-18 20:28:15 +0000 |
| commit | 34c8ae80dab7dff7ee69b219c6bf49ca6e84e73f (patch) | |
| tree | 625354b477ae0db6bb663fa25ffc8be7214a49a0 /sys/compat/linux | |
| parent | e912e655e179f7c8dd5317da1faff48b8b02cf8e (diff) | |
constify
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/arch/alpha/linux_sigarray.c | 4 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_machdep.c | 6 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_sigarray.c | 4 | ||||
| -rw-r--r-- | sys/compat/linux/arch/m68k/linux_sigarray.c | 4 | ||||
| -rw-r--r-- | sys/compat/linux/common/linux_errno.c | 4 | ||||
| -rw-r--r-- | sys/compat/linux/common/linux_errno.h | 4 | ||||
| -rw-r--r-- | sys/compat/linux/common/linux_signal.c | 4 | ||||
| -rw-r--r-- | sys/compat/linux/common/linux_signal.h | 6 |
8 files changed, 18 insertions, 18 deletions
diff --git a/sys/compat/linux/arch/alpha/linux_sigarray.c b/sys/compat/linux/arch/alpha/linux_sigarray.c index fc6574127bd..03cb99bbecb 100644 --- a/sys/compat/linux/arch/alpha/linux_sigarray.c +++ b/sys/compat/linux/arch/alpha/linux_sigarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigarray.c,v 1.4 1999/12/04 21:41:53 tron Exp $ */ +/* $NetBSD: linux_sigarray.c,v 1.5 2001/01/18 20:28:27 jdolecek Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ #include <compat/linux/common/linux_signal.h> -int linux_to_native_sig[LINUX__NSIG] = { +const int linux_to_native_sig[LINUX__NSIG] = { 0, SIGHUP, /* 1 */ SIGINT, diff --git a/sys/compat/linux/arch/i386/linux_machdep.c b/sys/compat/linux/arch/i386/linux_machdep.c index 49dd36bd511..29fbc65b8c7 100644 --- a/sys/compat/linux/arch/i386/linux_machdep.c +++ b/sys/compat/linux/arch/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.60 2001/01/18 13:56:32 fvdl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.61 2001/01/18 20:28:26 jdolecek Exp $ */ /*- * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc. @@ -470,7 +470,7 @@ linux_fakedev(dev) * That's not complete, but enough to get an X server running. */ #define NR_KEYS 128 -static u_short plain_map[NR_KEYS] = { +static const u_short plain_map[NR_KEYS] = { 0x0200, 0x001b, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x0030, 0x002d, 0x003d, 0x007f, 0x0009, 0x0b71, 0x0b77, 0x0b65, 0x0b72, 0x0b74, 0x0b79, 0x0b75, 0x0b69, @@ -540,7 +540,7 @@ static u_short plain_map[NR_KEYS] = { 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, }; -u_short *linux_keytabs[] = { +const u_short * const linux_keytabs[] = { plain_map, shift_map, altgr_map, altgr_map, ctrl_map }; #endif diff --git a/sys/compat/linux/arch/i386/linux_sigarray.c b/sys/compat/linux/arch/i386/linux_sigarray.c index b5fddde385d..e93e8d42019 100644 --- a/sys/compat/linux/arch/i386/linux_sigarray.c +++ b/sys/compat/linux/arch/i386/linux_sigarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigarray.c,v 1.17 1999/10/04 17:46:37 fvdl Exp $ */ +/* $NetBSD: linux_sigarray.c,v 1.18 2001/01/18 20:28:26 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ #include <compat/linux/common/linux_signal.h> -int linux_to_native_sig[LINUX__NSIG] = { +int const linux_to_native_sig[LINUX__NSIG] = { 0, SIGHUP, SIGINT, diff --git a/sys/compat/linux/arch/m68k/linux_sigarray.c b/sys/compat/linux/arch/m68k/linux_sigarray.c index 0905f72de89..48e6f1ab780 100644 --- a/sys/compat/linux/arch/m68k/linux_sigarray.c +++ b/sys/compat/linux/arch/m68k/linux_sigarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigarray.c,v 1.2 1999/12/04 21:38:57 tron Exp $ */ +/* $NetBSD: linux_sigarray.c,v 1.3 2001/01/18 20:28:27 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ #include <compat/linux/common/linux_signal.h> -int linux_to_native_sig[LINUX__NSIG] = { +const int linux_to_native_sig[LINUX__NSIG] = { 0, SIGHUP, SIGINT, diff --git a/sys/compat/linux/common/linux_errno.c b/sys/compat/linux/common/linux_errno.c index 4452342cb3d..350fb72506f 100644 --- a/sys/compat/linux/common/linux_errno.c +++ b/sys/compat/linux/common/linux_errno.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_errno.c,v 1.9 1998/10/23 03:53:18 erh Exp $ */ +/* $NetBSD: linux_errno.c,v 1.10 2001/01/18 20:28:27 jdolecek Exp $ */ /*- * Copyright (c) 1995 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ * This list is used to translate NetBSD errnos to linux errnos * when returning from a system call. (NetBSD system call->linux program) */ -int native_to_linux_errno[] = { +const int native_to_linux_errno[] = { 0, -LINUX_EPERM, -LINUX_ENOENT, diff --git a/sys/compat/linux/common/linux_errno.h b/sys/compat/linux/common/linux_errno.h index 8ee9495c8b9..e7afaf1b309 100644 --- a/sys/compat/linux/common/linux_errno.h +++ b/sys/compat/linux/common/linux_errno.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_errno.h,v 1.6 1998/10/24 19:03:53 christos Exp $ */ +/* $NetBSD: linux_errno.h,v 1.7 2001/01/18 20:28:27 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -86,6 +86,6 @@ #include <compat/linux/arch/i386/linux_errno.h> /* XXX:Allow kdump to compile */ #endif -extern int native_to_linux_errno[]; +extern const int native_to_linux_errno[]; #endif /* !_LINUX_ERRNO_H */ diff --git a/sys/compat/linux/common/linux_signal.c b/sys/compat/linux/common/linux_signal.c index 1758d695a09..95c7a71d1e4 100644 --- a/sys/compat/linux/common/linux_signal.c +++ b/sys/compat/linux/common/linux_signal.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_signal.c,v 1.30 2000/08/23 17:02:18 christos Exp $ */ +/* $NetBSD: linux_signal.c,v 1.31 2001/01/18 20:28:27 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -84,7 +84,7 @@ |= (1 << ((n) - 1) % LINUX__NSIG_BPW)) /* Note: linux_to_native_sig[] is in <arch>/linux_sigarray.c */ -int native_to_linux_sig[NSIG] = { +const int native_to_linux_sig[NSIG] = { 0, LINUX_SIGHUP, LINUX_SIGINT, diff --git a/sys/compat/linux/common/linux_signal.h b/sys/compat/linux/common/linux_signal.h index dfbe58032e1..229991eb05f 100644 --- a/sys/compat/linux/common/linux_signal.h +++ b/sys/compat/linux/common/linux_signal.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_signal.h,v 1.11 1998/12/15 19:31:40 itohy Exp $ */ +/* $NetBSD: linux_signal.h,v 1.12 2001/01/18 20:28:26 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -50,8 +50,8 @@ #endif #ifdef _KERNEL -extern int native_to_linux_sig[]; -extern int linux_to_native_sig[]; +extern const int native_to_linux_sig[]; +extern const int linux_to_native_sig[]; __BEGIN_DECLS int linux_sigprocmask1 __P((struct proc *, int, const linux_old_sigset_t *, linux_old_sigset_t *)); |
