Re: POSIX question

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: POSIX question
Дата
Msg-id 201106201736.42585.andres@anarazel.de
обсуждение исходный текст
Ответ на Re: POSIX question  (Greg Stark <stark@mit.edu>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Fwd: Keywords in pg_hba.conf should be field-specific
Следующее
От: Diogo Santos
Дата:
Сообщение: Auto Start second postgres 8.3.15-1 instance MAC OS X