Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: None <source@NetBSD.ORG>
List: source-changes
Date: 11/21/1996 18:50:02
cgd
Thu Nov 21 10:42:18 PST 1996
Update of /cvsroot/src/sys/sys
In directory netbsd1:/var/slash-tmp/cvs-serv14476/sys

Modified Files:
	extent.h 
Log Message:
hack so that extent prototypes can be used by user-land test harnesses:
if _EXTENT_TESTING is defined, the normally-kernel-only prototypes
are included.


cgd
Thu Nov 21 10:46:37 PST 1996
Update of /cvsroot/src/sys/kern
In directory netbsd1:/var/slash-tmp/cvs-serv14621/kern

Modified Files:
	subr_extent.c 
Log Message:
Feature:
If not compiled with -D_KERNEL, include different includes and
do so macro magic so that this will fit sanely into test harnesses.
When used in user-land, this should be compiled with -D_EXTENT_TESTING.

Bug fixes:
(extent_insert_and_optimize) You can't do things like:
	LIST_REMOVE(elem->...le_next, ...);
	free(elem->...le_next, ...);
They just don't work (and will corrupt your list and/or malloc free list).

(extent_alloc_region_descriptor) Unless you wait, malloc can fail.
Don't accidentally deref a potentially-NULL pointer.