5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mmap.html}
9 Portability problems fixed by Gnulib:
13 Portability problems not fixed by Gnulib:
16 This function is missing on some platforms:
19 On platforms where @code{off_t} is a 32-bit type, this function may not
20 work correctly across the entire data range of files larger than 2 GB.
21 The fix is to use the @code{AC_SYS_LARGEFILE} macro.
23 To get anonymous memory, on some platforms, you can use the flags
24 @code{MAP_ANONYMOUS | MAP_PRIVATE} and @code{-1} instead of a file descriptor;
25 on others you have to use a read-only file descriptor of @file{/dev/zero}.
27 On HP-UX, passing a non-NULL first argument, as a hint for the address (even
28 without @code{MAP_FIXED}, often causes @code{mmap} to fail. Better pass NULL
31 On HP-UX, @code{MAP_FIXED} basically never works. On other platforms, it depends
32 on the circumstances whether memory can be returned at a given address.