always fill in e_syscall in respective emul_*; if the emulation doesn't
have it's own separated *_syscall() function, use syscall()
This commit is contained in:
parent
b5ce335e1c
commit
a6ca890142
|
@ -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 struct sysent aout_sysent[];
|
|||
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 @@ struct emul emul_netbsd_aout = {
|
|||
NULL,
|
||||
NULL,
|
||||
EMUL_HAS_SYS___syscall,
|
||||
syscall
|
||||
};
|
||||
|
|
|
@ -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 struct sysent aoutm68k_sysent[];
|
|||
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 @@ struct emul emul_netbsd_aoutm68k = {
|
|||
NULL,
|
||||
NULL,
|
||||
EMUL_HAS_SYS___syscall,
|
||||
syscall
|
||||
};
|
||||
|
|
|
@ -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 @@ const struct emul emul_freebsd = {
|
|||
NULL,
|
||||
NULL,
|
||||
EMUL_HAS_SYS___syscall,
|
||||
syscall
|
||||
};
|
||||
|
|
|
@ -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 char sigcode[], esigcode[];
|
|||
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 @@ const struct emul emul_hpux = {
|
|||
hpux_syscallnames,
|
||||
sigcode,
|
||||
esigcode,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 @@ static void ibcs2_e_proc_exec __P((struct proc *, struct exec_package *));
|
|||
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 @@ const struct emul emul_ibcs2 = {
|
|||
#ifdef IBCS2_MACHDEP_HAS_SEPARATED_SYSCALL
|
||||
ibcs2_syscall,
|
||||
#else
|
||||
NULL,
|
||||
syscall,
|
||||
#endif
|
||||
#
|
||||
};
|
||||
|
|
|
@ -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 @@ const struct emul emul_linux = {
|
|||
#ifdef LINUX_MACHDEP_HAS_SEPARATED_SYSCALL
|
||||
linux_syscall,
|
||||
#else
|
||||
NULL,
|
||||
syscall,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -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 @@ extern struct sysent netbsd32_sysent[];
|
|||
#ifdef SYSCALL_DEBUG
|
||||
extern const char * const netbsd32_syscallnames[];
|
||||
#endif
|
||||
void syscall __P((void));
|
||||
|
||||
const struct emul emul_netbsd32 = {
|
||||
"netbsd32",
|
||||
|
@ -158,6 +159,11 @@ const struct emul emul_netbsd32 = {
|
|||
#endif
|
||||
netbsd32_sigcode,
|
||||
netbsd32_esigcode,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
|
||||
/* converters for structures that we need */
|
||||
|
|
|
@ -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 @@ const struct emul emul_osf1 = {
|
|||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
|
|
|
@ -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 @@ int pecoff_read_from __P((struct proc *p, struct vnode *vp, int pos,
|
|||
|
||||
|
||||
extern char sigcode[], esigcode[];
|
||||
void syscall __P((void));
|
||||
|
||||
#if notyet
|
||||
const struct emul emul_pecoff = {
|
||||
|
@ -99,6 +100,11 @@ const struct emul emul_pecoff = {
|
|||
#endif
|
||||
sigcode,
|
||||
esigcode,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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 struct sysent sunos_sysent[];
|
|||
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 @@ struct emul emul_sunos = {
|
|||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
|
|
|
@ -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 @@ const struct emul emul_svr4 = {
|
|||
#ifdef SVR4_MACHDEP_HAS_SEPARATED_SYSCALL
|
||||
svr4_syscall,
|
||||
#else
|
||||
NULL,
|
||||
syscall,
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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 const char * const ultrix_syscallnames[];
|
|||
|
||||
|
||||
extern char ultrix_sigcode[], ultrix_esigcode[];
|
||||
void syscall __P((void));
|
||||
|
||||
const struct emul emul_ultrix = {
|
||||
"ultrix",
|
||||
|
@ -180,6 +181,7 @@ const struct emul emul_ultrix = {
|
|||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
syscall
|
||||
};
|
||||
|
||||
#define GSI_PROG_ENV 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_exec.c,v 1.130 2000/12/08 19:42:12 jdolecek Exp $ */
|
||||
/* $NetBSD: kern_exec.c,v 1.131 2000/12/09 12:38:23 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
|
||||
|
@ -108,6 +108,7 @@ extern char sigcode[], esigcode[];
|
|||
#ifdef SYSCALL_DEBUG
|
||||
extern const char * const syscallnames[];
|
||||
#endif
|
||||
void syscall __P((void));
|
||||
|
||||
const struct emul emul_netbsd = {
|
||||
"netbsd",
|
||||
|
@ -128,6 +129,7 @@ const struct emul emul_netbsd = {
|
|||
NULL,
|
||||
NULL,
|
||||
EMUL_HAS_SYS___syscall,
|
||||
syscall
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue