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/common | |
| parent | e912e655e179f7c8dd5317da1faff48b8b02cf8e (diff) | |
constify
Diffstat (limited to 'sys/compat/linux/common')
| -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 |
4 files changed, 9 insertions, 9 deletions
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 *)); |
