Date: 06 Dec 2000 09:50:55 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: "G. Adam Stanislav" <adam@whizkidtech.net> Cc: Stephen McKay <mckay@thehub.com.au>, hackers@FreeBSD.ORG Subject: Re: pipe Message-ID: <xzpzoiaq6fk.fsf@flood.ping.uio.no> In-Reply-To: "G. Adam Stanislav"'s message of "Tue, 5 Dec 2000 12:14:23 -0600" References: <20001202085127.A301@int80h.org> <3A292D98.E655D755@softweyr.com> <20001203012841.B228@whizkidtech.net> <200012040256.eB42upH07905@dungeon.home> <20001205085645.A228@whizkidtech.net> <xzpwvdesx2q.fsf@flood.ping.uio.no> <20001205110328.A228@whizkidtech.net> <xzpitoyssid.fsf@flood.ping.uio.no> <20001205121423.A228@whizkidtech.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"G. Adam Stanislav" <adam@whizkidtech.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpzoiaq6fk.fsf>