From owner-freebsd-hackers Thu Oct 5 14:24:12 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id D59A037B66C for ; Thu, 5 Oct 2000 14:24:06 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id OAA12216; Thu, 5 Oct 2000 14:23:47 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.0/8.11.0) id e95LNlC22460; Thu, 5 Oct 2000 14:23:47 -0700 (PDT) (envelope-from jdp) Date: Thu, 5 Oct 2000 14:23:47 -0700 (PDT) From: jdp@polstra.com Message-Id: <200010052123.e95LNlC22460@vashon.polstra.com> To: hackers@freebsd.org Reply-To: hackers@freebsd.org Cc: rminnich@lanl.gov Subject: Re: anonymous memory map vs mmap on /dev/zero In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Ronald G Minnich wrote: > On Wed, 4 Oct 2000, FengYue wrote: > > > It seems that mmap on /dev/zero is more portable. > > no really, It won't work at all correctly on linux, and on Tru64 it does > the totally wrong thing, but the (fd = -1, MAP_ANONYMOUS) does the right > thing on tru64. > > It's disappointing that this works so unportably :-( The other oddity about Tru64 is that a 0-length mmap of a 0-length file fails. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message