From owner-freebsd-questions Fri Mar 19 3:39:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 3F3C114F67 for ; Fri, 19 Mar 1999 03:39:27 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id UAA02025; Fri, 19 Mar 1999 20:39:14 +0900 (JST) Message-ID: <36F2241F.623F9C81@newsguy.com> Date: Fri, 19 Mar 1999 19:17:03 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Greg Black Cc: questions@FreeBSD.ORG Subject: Re: mmap References: <199903181913.EAA17529@daniel.sobral> <19990318204354.15163.qmail@alpha.comkey.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Black wrote: > > > What's the meaning of fd = -1 with mmap()? > > It's fully covered in the man page. What don't you understand? It isn't "fully" covered in the man page. It says that -1 must be used in the case of MAP_ANON. It *doesn't* say what happens when you *do not* use MAP_ANON with fd -1, and it *does not* list an error code for this case (thus, I suppose one is not returned). To assume any behavior would be just that: to assume. It is not acceptable. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "What happened?" "It moved, sir!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message