Re: [HACKERS] mmap and MAP_ANON - Mailing list pgsql-hackers

From ocie@paracel.com
Subject Re: [HACKERS] mmap and MAP_ANON
Date
Msg-id 9805121940.AA05201@dolomite.paracel.com
Whole thread Raw
In response to Re: [HACKERS] mmap and MAP_ANON  (Hannu Krosing <hannu@trust.ee>)
List pgsql-hackers
Hannu Krosing wrote:
>
> ocie@paracel.com wrote:
> >
> > Bruce Momjian wrote:
> > >
> > > Would people tell me what platforms do NOT support the MAP_ANON flag to
> > > the mmap() system call?  You should find it in the mmap() manual page.
> >
> > Doesn't seem to appear in Linux (2.0.30 kernel).  As another poster
> > commented, /dev/zero can be mapped for anonymous memory.
>
> although 'man mmap' does not say it, it is present in sys/mman.h on
> linux (at least 2.0.33)

It appears there, but using it causes mmap to return EINVAL.

Ocie

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: outnode error in current source
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Unusual notices in latest snapshot