Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/07/2000 14:41:53
Module Name:	syssrc
Committed By:	jdolecek
Date:		Tue Nov  7 12:41:53 UTC 2000

Modified Files:
	syssrc/sys/kern: kern_exec.c kern_exit.c kern_fork.c
	syssrc/sys/sys: proc.h

Log Message:
add void *p_emuldata into struct proc - this can be used to hold per-process
	emulation-specific data
add process exit, exec and fork function hooks into struct emul:
* e_proc_fork() - called in fork1() after the new forked process is setup
* e_proc_exec() - called in sys_execve() after the executed process is setup
* e_proc_exit() - called in exit1() after all the other process cleanups are
  done, right before machine-dependant switch to new context; also called
  for "old" emulation from sys_execve() if emulation of executed program and
  the original process is different

This was discussed on tech-kern.


To generate a diff of this commit:
cvs rdiff -r1.121 -r1.122 syssrc/sys/kern/kern_exec.c
cvs rdiff -r1.85 -r1.86 syssrc/sys/kern/kern_exit.c
cvs rdiff -r1.74 -r1.75 syssrc/sys/kern/kern_fork.c
cvs rdiff -r1.105 -r1.106 syssrc/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.