Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Introduce lwp_emuldata and the associated hooks. No hook...
details: https://anonhg.NetBSD.org/src/rev/f4027ba4f15f
branches: trunk
changeset: 556563:f4027ba4f15f
user: manu <manu%NetBSD.org@localhost>
date: Sat Dec 20 18:22:16 2003 +0000
description:
Introduce lwp_emuldata and the associated hooks. No hook is provided for the
exec case, as the emulation already has the ability to intercept that
with the e_proc_exec hook. It is the responsability of the emulation to
take appropriaye action about lwp_emuldata in e_proc_exec.
Patch reviewed by Christos.
diffstat:
sys/compat/aout/aout_exec.c | 6 ++++--
sys/compat/aoutm68k/aoutm68k_exec.c | 6 ++++--
sys/compat/darwin/darwin_exec.c | 6 ++++--
sys/compat/freebsd/freebsd_exec.c | 6 ++++--
sys/compat/hpux/hpux_exec.c | 6 ++++--
sys/compat/ibcs2/ibcs2_exec.c | 6 ++++--
sys/compat/irix/irix_exec.c | 6 ++++--
sys/compat/linux/common/linux_exec.c | 6 ++++--
sys/compat/mach/mach_exec.c | 6 ++++--
sys/compat/netbsd32/netbsd32_netbsd.c | 6 ++++--
sys/compat/osf1/osf1_exec.c | 6 ++++--
sys/compat/pecoff/pecoff_emul.c | 6 ++++--
sys/compat/sunos/sunos_exec.c | 6 ++++--
sys/compat/sunos32/sunos32_exec.c | 6 ++++--
sys/compat/svr4/svr4_exec.c | 6 ++++--
sys/compat/svr4_32/svr4_32_exec.c | 6 ++++--
sys/compat/ultrix/ultrix_misc.c | 6 ++++--
sys/kern/kern_exec.c | 6 ++++--
sys/kern/kern_lwp.c | 10 ++++++++--
sys/sys/lwp.h | 4 +---
sys/sys/proc.h | 4 +++-
21 files changed, 84 insertions(+), 42 deletions(-)
diffs (truncated from 561 to 300 lines):
diff -r af66140d72de -r f4027ba4f15f sys/compat/aout/aout_exec.c
--- a/sys/compat/aout/aout_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/aout/aout_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout_exec.c,v 1.19 2003/12/05 21:12:42 jdolecek Exp $ */
+/* $NetBSD: aout_exec.c,v 1.20 2003/12/20 18:22:17 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aout_exec.c,v 1.19 2003/12/05 21:12:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aout_exec.c,v 1.20 2003/12/20 18:22:17 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -96,6 +96,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/aoutm68k/aoutm68k_exec.c
--- a/sys/compat/aoutm68k/aoutm68k_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aoutm68k_exec.c,v 1.15 2003/12/05 21:12:42 jdolecek Exp $ */
+/* $NetBSD: aoutm68k_exec.c,v 1.16 2003/12/20 18:22:17 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.15 2003/12/05 21:12:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.16 2003/12/20 18:22:17 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -85,6 +85,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
aoutm68k_syscall_intern,
NULL,
NULL,
diff -r af66140d72de -r f4027ba4f15f sys/compat/darwin/darwin_exec.c
--- a/sys/compat/darwin/darwin_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/darwin/darwin_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: darwin_exec.c,v 1.29 2003/12/09 00:48:54 christos Exp $ */
+/* $NetBSD: darwin_exec.c,v 1.30 2003/12/20 18:22:17 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "opt_compat_darwin.h" /* For COMPAT_DARWIN in mach_port.h */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: darwin_exec.c,v 1.29 2003/12/09 00:48:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_exec.c,v 1.30 2003/12/20 18:22:17 manu Exp $");
#include "opt_syscall_debug.h"
@@ -124,6 +124,8 @@
darwin_e_proc_exec,
darwin_e_proc_fork,
darwin_e_proc_exit,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
mach_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/freebsd/freebsd_exec.c
--- a/sys/compat/freebsd/freebsd_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/freebsd/freebsd_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: freebsd_exec.c,v 1.23 2003/12/05 21:12:42 jdolecek Exp $ */
+/* $NetBSD: freebsd_exec.c,v 1.24 2003/12/20 18:22:17 manu Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.23 2003/12/05 21:12:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.24 2003/12/20 18:22:17 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -73,6 +73,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
freebsd_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/hpux/hpux_exec.c
--- a/sys/compat/hpux/hpux_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/hpux/hpux_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpux_exec.c,v 1.40 2003/12/05 21:12:42 jdolecek Exp $ */
+/* $NetBSD: hpux_exec.c,v 1.41 2003/12/20 18:22:18 manu Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpux_exec.c,v 1.40 2003/12/05 21:12:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpux_exec.c,v 1.41 2003/12/20 18:22:18 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -130,6 +130,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
hpux_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/ibcs2/ibcs2_exec.c
--- a/sys/compat/ibcs2/ibcs2_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_exec.c,v 1.56 2003/12/05 21:12:43 jdolecek Exp $ */
+/* $NetBSD: ibcs2_exec.c,v 1.57 2003/12/20 18:22:18 manu Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.56 2003/12/05 21:12:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.57 2003/12/20 18:22:18 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -90,6 +90,8 @@
ibcs2_e_proc_exec,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
ibcs2_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/irix/irix_exec.c
--- a/sys/compat/irix/irix_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/irix/irix_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_exec.c,v 1.35 2003/12/05 21:12:43 jdolecek Exp $ */
+/* $NetBSD: irix_exec.c,v 1.36 2003/12/20 18:22:18 manu Exp $ */
/*-
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_exec.c,v 1.35 2003/12/05 21:12:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_exec.c,v 1.36 2003/12/20 18:22:18 manu Exp $");
#ifdef _KERNEL_OPT
#include "opt_syscall_debug.h"
@@ -111,6 +111,8 @@
irix_e_proc_exec,
irix_e_proc_fork,
irix_e_proc_exit,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
irix_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/linux/common/linux_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec.c,v 1.68 2003/12/05 21:12:43 jdolecek Exp $ */
+/* $NetBSD: linux_exec.c,v 1.69 2003/12/20 18:22:18 manu Exp $ */
/*-
* Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.68 2003/12/05 21:12:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.69 2003/12/20 18:22:18 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -134,6 +134,8 @@
linux_e_proc_exec,
linux_e_proc_fork,
linux_e_proc_exit,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
linux_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/mach/mach_exec.c
--- a/sys/compat/mach/mach_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/mach/mach_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_exec.c,v 1.45 2003/12/18 01:10:20 grant Exp $ */
+/* $NetBSD: mach_exec.c,v 1.46 2003/12/20 18:22:18 manu Exp $ */
/*-
* Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_exec.c,v 1.45 2003/12/18 01:10:20 grant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_exec.c,v 1.46 2003/12/20 18:22:18 manu Exp $");
#include "opt_syscall_debug.h"
@@ -110,6 +110,8 @@
mach_e_proc_exec,
mach_e_proc_fork,
mach_e_proc_exit,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
mach_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.78 2003/12/05 21:12:43 jdolecek Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.79 2003/12/20 18:22:18 manu Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.78 2003/12/05 21:12:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.79 2003/12/20 18:22:18 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -135,6 +135,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
netbsd32_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/osf1/osf1_exec.c Sat Dec 20 18:22:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec.c,v 1.34 2003/12/05 21:12:43 jdolecek Exp $ */
+/* $NetBSD: osf1_exec.c,v 1.35 2003/12/20 18:22:18 manu Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osf1_exec.c,v 1.34 2003/12/05 21:12:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_exec.c,v 1.35 2003/12/20 18:22:18 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -74,6 +74,8 @@
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
#ifdef __HAVE_SYSCALL_INTERN
osf1_syscall_intern,
#else
diff -r af66140d72de -r f4027ba4f15f sys/compat/pecoff/pecoff_emul.c
--- a/sys/compat/pecoff/pecoff_emul.c Sat Dec 20 17:38:19 2003 +0000
+++ b/sys/compat/pecoff/pecoff_emul.c Sat Dec 20 18:22:16 2003 +0000
Home |
Main Index |
Thread Index |
Old Index