mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
30 lines
887 B
Plaintext
30 lines
887 B
Plaintext
@node mmap
|
|
@section @code{mmap}
|
|
@findex mmap
|
|
|
|
POSIX specification: @url{http://www.opengroup.org/susv3xsh/mmap.html}
|
|
|
|
Gnulib module: ---
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function is missing on some platforms:
|
|
mingw, BeOS.
|
|
@item
|
|
To get anonymous memory, on some platforms, you can use the flags
|
|
@code{MAP_ANONYMOUS | MAP_PRIVATE} and @code{-1} instead of a file descriptor;
|
|
on others you have to use a read-only file descriptor of @file{/dev/zero}.
|
|
@item
|
|
On HP-UX, passing a non-NULL first argument, as a hint for the address (even
|
|
without @code{MAP_FIXED}, often causes @code{mmap} to fail. Better pass NULL
|
|
in this case.
|
|
@item
|
|
On HP-UX, @code{MAP_FIXED} basically never works. On other platforms, it depends
|
|
on the circumstances whether memory can be returned at a given address.
|
|
@end itemize
|