Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/systrace use native syscallnames[] array for 'aout' and ...



details:   https://anonhg.NetBSD.org/src/rev/ce9a783eebf9
branches:  trunk
changeset: 569890:ce9a783eebf9
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Sep 12 11:05:43 2004 +0000

description:
use native syscallnames[] array for 'aout' and 'aoutm68k' "emulations" - it's
only used for syscall name <-> number translations, and the native array
is guaranteed to be superset of the former 'aout' and 'aoutm68k' arrays

this re-adds 'aoutm68k' support, and replaces change made in 1.14

g/c #include's which are no longer needed (including aout_syscalls.c), and
also add some comments for the emulations[] array

diffstat:

 bin/systrace/netbsd-syscalls.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 7fe1ad7054e9 -r ce9a783eebf9 bin/systrace/netbsd-syscalls.c
--- a/bin/systrace/netbsd-syscalls.c    Sun Sep 12 10:38:25 2004 +0000
+++ b/bin/systrace/netbsd-syscalls.c    Sun Sep 12 11:05:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd-syscalls.c,v 1.16 2004/09/12 09:25:59 jdolecek Exp $    */
+/*     $NetBSD: netbsd-syscalls.c,v 1.17 2004/09/12 11:05:43 jdolecek Exp $    */
 
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,15 +31,13 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: netbsd-syscalls.c,v 1.16 2004/09/12 09:25:59 jdolecek Exp $");
+__RCSID("$NetBSD: netbsd-syscalls.c,v 1.17 2004/09/12 11:05:43 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
 
 #include <sys/syscall.h>
 
-#include "compat/aout/aout_syscall.h"
-#include "compat/aoutm68k/aoutm68k_syscall.h"
 #include "compat/freebsd/freebsd_syscall.h"
 #include "compat/hpux/hpux_syscall.h"
 #include "compat/ibcs2/ibcs2_syscall.h"
@@ -65,7 +63,6 @@
 #define NTP
 #include "kern/syscalls.c"
 
-#include "compat/aout/aout_syscalls.c"
 #include "compat/freebsd/freebsd_syscalls.c"
 #include "compat/hpux/hpux_syscalls.c"
 #include "compat/ibcs2/ibcs2_syscalls.c"
@@ -110,9 +107,14 @@
 };
 
 static const struct emulation emulations[] = {
+       /* Native NetBSD binaries */
        { "netbsd",     syscallnames,           SYS_MAXSYSCALL },
 
-       { "aout",       aout_syscallnames,      AOUT_SYS_MAXSYSCALL },
+       /* NetBSD a.out binaries running under a.out compatibility wrapper */
+       { "aout",       syscallnames,           SYS_MAXSYSCALL },
+       { "aoutm68k",   syscallnames,           SYS_MAXSYSCALL },
+
+       /* Binaries running under OS compatibility wrapper */
        { "freebsd",    freebsd_syscallnames,   FREEBSD_SYS_MAXSYSCALL },
        { "hpux",       hpux_syscallnames,      HPUX_SYS_MAXSYSCALL },
        { "ibcs2",      ibcs2_syscallnames,     IBCS2_SYS_MAXSYSCALL },



Home | Main Index | Thread Index | Old Index