Re: POSIX question - Mailing list pgsql-hackers

From Andres Freund
Subject Re: POSIX question
Date
Msg-id 201106201736.42585.andres@anarazel.de
Whole thread Raw
In response to Re: POSIX question  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Monday, June 20, 2011 17:11:14 Greg Stark wrote:
> On Mon, Jun 20, 2011 at 4:01 PM, Florian Pflug <fgp@phlo.org> wrote:
> > Are you sure? Isn't mmap()ing /dev/null a way to *allocate* memory?
> > 
> > Or at least this is what I always thought glibc does when you malloc()
> 
> It mmaps /dev/zero actually.
As the nitpicking has already started: Afair its just passing -1 as fd and 
uses the MAP_ANONYMOUS flag argument ;)

Andres


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Fwd: Keywords in pg_hba.conf should be field-specific
Next
From: Diogo Santos
Date:
Subject: Auto Start second postgres 8.3.15-1 instance MAC OS X