avoid some overlong lines from posix urls, etc.
[gnulib.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, BeOS.
18 @item
19 To get anonymous memory, on some platforms, you can use the flags
20 @code{MAP_ANONYMOUS | MAP_PRIVATE} and @code{-1} instead of a file descriptor;
21 on others you have to use a read-only file descriptor of @file{/dev/zero}.
22 @item
23 On HP-UX, passing a non-NULL first argument, as a hint for the address (even
24 without @code{MAP_FIXED}, often causes @code{mmap} to fail.  Better pass NULL
25 in this case.
26 @item
27 On HP-UX, @code{MAP_FIXED} basically never works.  On other platforms, it depends
28 on the circumstances whether memory can be returned at a given address.
29 @end itemize