Source-Changes-HG archive

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

[src/trunk]: src/sys always fill in e_syscall in respective emul_*; if the em...



details:   https://anonhg.NetBSD.org/src/rev/33e681ba698a
branches:  trunk
changeset: 500289:33e681ba698a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Dec 09 12:38:23 2000 +0000

description:
always fill in e_syscall in respective emul_*; if the emulation doesn't
have it's own separated *_syscall() function, use syscall()

diffstat:

 sys/compat/aout/aout_exec.c           |  5 +++--
 sys/compat/aoutm68k/aoutm68k_exec.c   |  5 +++--
 sys/compat/freebsd/freebsd_exec.c     |  4 +++-
 sys/compat/hpux/hpux_exec.c           |  8 +++++++-
 sys/compat/ibcs2/ibcs2_exec.c         |  5 +++--
 sys/compat/linux/common/linux_exec.c  |  6 ++++--
 sys/compat/netbsd32/netbsd32_netbsd.c |  8 +++++++-
 sys/compat/osf1/osf1_exec.c           |  4 +++-
 sys/compat/pecoff/pecoff_exec.c       |  8 +++++++-
 sys/compat/sunos/sunos_exec.c         |  4 +++-
 sys/compat/svr4/svr4_exec.c           |  5 +++--
 sys/compat/ultrix/ultrix_misc.c       |  4 +++-
 sys/kern/kern_exec.c                  |  4 +++-
 13 files changed, 52 insertions(+), 18 deletions(-)

diffs (truncated from 332 to 300 lines):

diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/aout/aout_exec.c
--- a/sys/compat/aout/aout_exec.c       Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/aout/aout_exec.c       Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aout_exec.c,v 1.7 2000/12/06 21:02:00 jdolecek Exp $   */
+/*     $NetBSD: aout_exec.c,v 1.8 2000/12/09 12:38:23 jdolecek Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
 extern const char * const aout_syscallnames[];
 #endif
 extern char sigcode[], esigcode[];
-
+void syscall __P((void));
 
 struct emul emul_netbsd_aout = {
        "netbsd",
@@ -74,4 +74,5 @@
        NULL,
        NULL,
        EMUL_HAS_SYS___syscall,
+       syscall
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/aoutm68k/aoutm68k_exec.c
--- a/sys/compat/aoutm68k/aoutm68k_exec.c       Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_exec.c       Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aoutm68k_exec.c,v 1.2 2000/12/08 20:07:43 jdolecek Exp $       */
+/*     $NetBSD: aoutm68k_exec.c,v 1.3 2000/12/09 12:38:24 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
 extern const char * const aoutm68k_syscallnames[];
 #endif
 extern char sigcode[], esigcode[];
-
+void syscall __P((void));
 
 struct emul emul_netbsd_aoutm68k = {
        "aoutm68k",
@@ -75,4 +75,5 @@
        NULL,
        NULL,
        EMUL_HAS_SYS___syscall,
+       syscall
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/freebsd/freebsd_exec.c
--- a/sys/compat/freebsd/freebsd_exec.c Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/freebsd/freebsd_exec.c Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_exec.c,v 1.11 2000/12/09 07:10:34 mycroft Exp $        */
+/*     $NetBSD: freebsd_exec.c,v 1.12 2000/12/09 12:38:24 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -41,6 +41,7 @@
 
 extern struct sysent freebsd_sysent[];
 extern const char * const freebsd_syscallnames[];
+void syscall __P((void));
 
 const struct emul emul_freebsd = {
        "freebsd",
@@ -57,4 +58,5 @@
        NULL,
        NULL,
        EMUL_HAS_SYS___syscall,
+       syscall
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/hpux/hpux_exec.c
--- a/sys/compat/hpux/hpux_exec.c       Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/hpux/hpux_exec.c       Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpux_exec.c,v 1.20 2000/12/01 19:15:12 jdolecek Exp $  */
+/*     $NetBSD: hpux_exec.c,v 1.21 2000/12/09 12:38:24 jdolecek Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -98,6 +98,7 @@
 extern struct sysent hpux_sysent[];
 extern const char * const hpux_syscallnames[];
 extern int native_to_hpux_errno[];
+void syscall __P((void));
 
 const struct emul emul_hpux = {
        "hpux",
@@ -110,6 +111,11 @@
        hpux_syscallnames,
        sigcode,
        esigcode,
+       NULL,
+       NULL,
+       NULL,
+       0,
+       syscall
 };
 
 /*
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/ibcs2/ibcs2_exec.c
--- a/sys/compat/ibcs2/ibcs2_exec.c     Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec.c     Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ibcs2_exec.c,v 1.41 2000/12/09 07:10:35 mycroft Exp $  */
+/*     $NetBSD: ibcs2_exec.c,v 1.42 2000/12/09 12:38:24 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -56,6 +56,7 @@
 extern struct sysent ibcs2_sysent[];
 extern const char * const ibcs2_syscallnames[];
 extern char ibcs2_sigcode[], ibcs2_esigcode[];
+void syscall __P((void));
 
 #ifdef IBCS2_DEBUG
 int ibcs2_debug = 1;
@@ -81,7 +82,7 @@
 #ifdef IBCS2_MACHDEP_HAS_SEPARATED_SYSCALL
        ibcs2_syscall,
 #else
-       NULL,
+       syscall,
 #endif
 #
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c      Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/linux/common/linux_exec.c      Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.c,v 1.42 2000/12/02 16:05:04 jdolecek Exp $ */
+/*     $NetBSD: linux_exec.c,v 1.43 2000/12/09 12:38:24 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
@@ -69,6 +69,8 @@
 extern struct sysent linux_sysent[];
 extern const char * const linux_syscallnames[];
 extern char linux_sigcode[], linux_esigcode[];
+void linux_syscall __P((void));
+void syscall __P((void));
 
 static void linux_e_proc_exec __P((struct proc *, struct exec_package *));
 static void linux_e_proc_fork __P((struct proc *, struct proc *));
@@ -127,7 +129,7 @@
 #ifdef LINUX_MACHDEP_HAS_SEPARATED_SYSCALL
        linux_syscall,
 #else
-       NULL,
+       syscall,
 #endif
 };
 
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.44 2000/12/08 19:42:12 jdolecek Exp $    */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.45 2000/12/09 12:38:24 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1998 Matthew R. Green
@@ -142,6 +142,7 @@
 #ifdef SYSCALL_DEBUG
 extern const char * const netbsd32_syscallnames[];
 #endif
+void syscall __P((void));
 
 const struct emul emul_netbsd32 = {
        "netbsd32",
@@ -158,6 +159,11 @@
 #endif
        netbsd32_sigcode,
        netbsd32_esigcode,
+       NULL,
+       NULL,
+       NULL,
+       0,
+       syscall
 };
 
 /* converters for structures that we need */
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c       Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/osf1/osf1_exec.c       Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec.c,v 1.18 2000/12/09 07:10:35 mycroft Exp $ */
+/* $NetBSD: osf1_exec.c,v 1.19 2000/12/09 12:38:25 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -42,6 +42,7 @@
 extern struct sysent osf1_sysent[];
 extern const char * const osf1_syscallnames[];
 extern char osf1_sigcode[], osf1_esigcode[];
+void syscall __P((void));
 
 const struct emul emul_osf1 = {
        "osf1",
@@ -58,4 +59,5 @@
        NULL,
        NULL,
        0,
+       syscall
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/pecoff/pecoff_exec.c
--- a/sys/compat/pecoff/pecoff_exec.c   Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/pecoff/pecoff_exec.c   Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pecoff_exec.c,v 1.5 2000/12/01 12:28:35 jdolecek Exp $ */
+/*     $NetBSD: pecoff_exec.c,v 1.6 2000/12/09 12:38:25 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2000 Masaru OKI
@@ -82,6 +82,7 @@
 
 
 extern char sigcode[], esigcode[];
+void syscall __P((void));
 
 #if notyet
 const struct emul emul_pecoff = {
@@ -99,6 +100,11 @@
 #endif
        sigcode,
        esigcode,
+       NULL,
+       NULL,
+       NULL,
+       0,
+       syscall
 };
 #endif
 
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/sunos/sunos_exec.c
--- a/sys/compat/sunos/sunos_exec.c     Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/sunos/sunos_exec.c     Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos_exec.c,v 1.27 2000/12/09 07:10:36 mycroft Exp $  */
+/*     $NetBSD: sunos_exec.c,v 1.28 2000/12/09 12:38:25 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1993 Theo de Raadt
@@ -47,6 +47,7 @@
 extern const char * const sunos_syscallnames[];
 #endif
 extern char sunos_sigcode[], sunos_esigcode[];
+void syscall __P((void));
 
 struct emul emul_sunos = {
        "sunos",
@@ -67,4 +68,5 @@
        NULL,
        NULL,
        0,
+       syscall
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/svr4/svr4_exec.c
--- a/sys/compat/svr4/svr4_exec.c       Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/svr4/svr4_exec.c       Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_exec.c,v 1.38 2000/12/09 06:25:03 mycroft Exp $    */
+/*     $NetBSD: svr4_exec.c,v 1.39 2000/12/09 12:38:25 jdolecek Exp $   */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -52,6 +52,7 @@
 extern char svr4_sigcode[], svr4_esigcode[];
 extern struct sysent svr4_sysent[];
 extern const char * const svr4_syscallnames[];
+void syscall __P((void));
 
 const struct emul emul_svr4 = {
        "svr4",
@@ -71,6 +72,6 @@
 #ifdef SVR4_MACHDEP_HAS_SEPARATED_SYSCALL
        svr4_syscall,
 #else
-       NULL,
+       syscall,
 #endif
 };
diff -r 1ea31e9e1c19 -r 33e681ba698a sys/compat/ultrix/ultrix_misc.c
--- a/sys/compat/ultrix/ultrix_misc.c   Sat Dec 09 12:34:14 2000 +0000
+++ b/sys/compat/ultrix/ultrix_misc.c   Sat Dec 09 12:38:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ultrix_misc.c,v 1.64 2000/12/09 12:19:28 jdolecek Exp $        */
+/*     $NetBSD: ultrix_misc.c,v 1.65 2000/12/09 12:38:25 jdolecek Exp $        */
 
 /*
  * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -164,6 +164,7 @@
 
 
 extern char ultrix_sigcode[], ultrix_esigcode[];
+void syscall __P((void));
 
 const struct emul emul_ultrix = {
        "ultrix",
@@ -180,6 +181,7 @@



Home | Main Index | Thread Index | Old Index