Bump to 1.14.1
[platform/upstream/augeas.git] / doc / posix-functions / mmap.texi
1 @node mmap
2 @section @code{mmap}
3 @findex mmap
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mmap.html}
6
7 Gnulib module: ---
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
12
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 This function is missing on some platforms:
17 mingw, MSVC 9, BeOS.
18 @item
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.
22 @item
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}.
26 @item
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
29 in this case.
30 @item
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.
33 @end itemize