Subject: Re: MAP_ANON
To: Erik ?ngg?rd <erik.anggard@packetfront.com>
From: Bang Jun-Young <junyoung@netbsd.org>
List: tech-kern
Date: 03/18/2003 17:18:15
On Tue, Mar 18, 2003 at 02:00:17PM +0900, Bang Jun-Young wrote:
> FreeBSD vm_mmap.c (originated from the old VM) has no such code, and there's
> no reason to not allow fd to be set to -1 for MAP_ANON case. IMO, it's a
> bug in our uvm_mmap.c.

Oops, that should be read:

"There's no reason to require fd to be set to -1 for MAP_ANON case."

	} else {		/* MAP_ANON case */
		/*
		 * XXX What do we do about (MAP_SHARED|MAP_PRIVATE) == 0?
		 */
		if (fd != -1)
			return (EINVAL);

Thanks to Martin Husemann for pointing out the wrong expression. :-)

Jun-Young

-- 
Bang Jun-Young <junyoung@netbsd.org>