summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-10 15:55:25 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-10 15:55:25 +0000
commit714819a2c2535daa62112e50f032b5b2e0e8716c (patch)
tree55f89dd41209d825787bd972b1497ffb4707d6d7 /sys/compat/linux
parentc8d2e51bd7a0619de056d282d236c87a31ae36db (diff)
include syscallnames only if compiling w/ SYSCALL_DEBUG.
was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/files.linux4
-rw-r--r--sys/compat/linux/linux_exec.c12
2 files changed, 13 insertions, 3 deletions
diff --git a/sys/compat/linux/files.linux b/sys/compat/linux/files.linux
index c4bc64b8e5d..6590748ad2f 100644
--- a/sys/compat/linux/files.linux
+++ b/sys/compat/linux/files.linux
@@ -1,4 +1,4 @@
-# $OpenBSD: files.linux,v 1.6 1998/04/26 21:22:20 provos Exp $
+# $OpenBSD: files.linux,v 1.7 1999/11/10 15:55:21 mickey Exp $
# $NetBSD: files.linux,v 1.4 1996/03/08 04:55:59 mycroft Exp $
#
# Config.new file description for machine-independent Linux compat code.
@@ -16,7 +16,7 @@ file compat/linux/linux_ipc.c compat_linux
file compat/linux/linux_misc.c compat_linux
file compat/linux/linux_signal.c compat_linux
file compat/linux/linux_socket.c compat_linux
-file compat/linux/linux_syscalls.c compat_linux
+file compat/linux/linux_syscalls.c compat_linux & syscall_debug
file compat/linux/linux_sysent.c compat_linux
file compat/linux/linux_termios.c compat_linux
file compat/linux/linux_mount.c compat_linux
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c
index e7e82cbd84b..0ca350998be 100644
--- a/sys/compat/linux/linux_exec.c
+++ b/sys/compat/linux/linux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_exec.c,v 1.11 1999/09/10 20:27:40 art Exp $ */
+/* $OpenBSD: linux_exec.c,v 1.12 1999/11/10 15:55:22 mickey Exp $ */
/* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */
/*
@@ -72,7 +72,9 @@ const char linux_emul_path[] = "/emul/linux";
extern int linux_error[];
extern char linux_sigcode[], linux_esigcode[];
extern struct sysent linux_sysent[];
+#ifdef SYSCALL_DEBUG
extern char *linux_syscallnames[];
+#endif
int exec_linux_aout_prep_zmagic __P((struct proc *, struct exec_package *));
int exec_linux_aout_prep_nmagic __P((struct proc *, struct exec_package *));
@@ -86,7 +88,11 @@ struct emul emul_linux_aout = {
LINUX_SYS_syscall,
LINUX_SYS_MAXSYSCALL,
linux_sysent,
+#ifdef SYSCALL_DEBUG
linux_syscallnames,
+#else
+ NULL,
+#endif
LINUX_AOUT_AUX_ARGSIZ,
linux_aout_copyargs,
setregs,
@@ -102,7 +108,11 @@ struct emul emul_linux_elf = {
LINUX_SYS_syscall,
LINUX_SYS_MAXSYSCALL,
linux_sysent,
+#ifdef SYSCALL_DEBUG
linux_syscallnames,
+#else
+ NULL,
+#endif
LINUX_ELF_AUX_ARGSIZ,
elf_copyargs,
setregs,