Subject: CVS commit: src/sys/compat
To: None <source-changes@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 01/03/2003 15:40:07
Module Name:	src
Committed By:	manu
Date:		Fri Jan  3 13:40:06 UTC 2003

Modified Files:
	src/sys/compat/darwin: darwin_exec.c
	src/sys/compat/mach: mach_exec.c mach_exec.h mach_message.c mach_port.c
	    mach_port.h

Log Message:
FIxed the way rights are recycled: the refcount makes only sense for
send, send once, and dead names, not for port sets and receive rights.
This make vi and telnet able to work again.

Also removed the all process right list and its lock, which got useless. The
all process lock is replaced by a per process lock, located in struct
mach_emuldata.

Also one bug fix: we did not correctly called Mach hooks for struct emuldata
initialization and release for Darwin processes.


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/sys/compat/darwin/darwin_exec.c
cvs rdiff -r1.23 -r1.24 src/sys/compat/mach/mach_exec.c
cvs rdiff -r1.12 -r1.13 src/sys/compat/mach/mach_exec.h
cvs rdiff -r1.19 -r1.20 src/sys/compat/mach/mach_message.c
cvs rdiff -r1.29 -r1.30 src/sys/compat/mach/mach_port.c
cvs rdiff -r1.15 -r1.16 src/sys/compat/mach/mach_port.h

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