From owner-freebsd-hackers Wed Dec 6 0:51: 3 2000 From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 6 00:51:01 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 05D6037B400 for ; Wed, 6 Dec 2000 00:51:01 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id JAA28321; Wed, 6 Dec 2000 09:50:56 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "G. Adam Stanislav" Cc: Stephen McKay , hackers@FreeBSD.ORG Subject: Re: pipe References: <20001202085127.A301@int80h.org> <3A292D98.E655D755@softweyr.com> <20001203012841.B228@whizkidtech.net> <200012040256.eB42upH07905@dungeon.home> <20001205085645.A228@whizkidtech.net> <20001205110328.A228@whizkidtech.net> <20001205121423.A228@whizkidtech.net> From: Dag-Erling Smorgrav Date: 06 Dec 2000 09:50:55 +0100 In-Reply-To: "G. Adam Stanislav"'s message of "Tue, 5 Dec 2000 12:14:23 -0600" Message-ID: Lines: 26 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "G. Adam Stanislav" writes: > On Tue, Dec 05, 2000 at 06:11:06PM +0100, Dag-Erling Smorgrav wrote: > >The second and third sentences of the second paragraph (the one that > >starts on line 23), as well as the entire eighth paragraph (that > >starts on line 45), address the questions you asked in your previous > >mail. > I know it addresses it. Unfortunately, I didn't understand a word of it. I don't see how it could get any clearer. [...] If addr is zero, an address will be selected by the system. The actual starting address of the region is returned. This means you don't need to provide an address to mmap, it'll pick one on its own. MAP_ANON Map anonymous memory not associated with any specific file. The file descriptor used for creating MAP_ANON must be -1. The offset parameter is ignored. This means you can mmap() memory that isn't associated with a file by passing -1 instead of a file descriptor and adding MAP_ANON to flags. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message