[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mmap()

On Tue, Dec 24, 2002 at 05:42:00PM -0500, Bob Hilliard wrote:
>      Is the mmap() function portable to all architectures supported by
> Debian?

The main gotcha is that you can only perform a shared (MAP_SHARED)
mmap() of anonymous memory regions (MAP_ANON) or /dev/zero on Linux 2.4
and greater. Otherwise I believe it's portable.

Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: