Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
off_tis a 32-bit type, this function may not work correctly across the entire data range of files larger than 2 GB. The fix is to use the
MAP_ANONYMOUS | MAP_PRIVATEand
-1instead of a file descriptor; on others you have to use a read-only file descriptor of /dev/zero.
MAP_FIXED, often causes
mmapto fail. Better pass NULL in this case.
MAP_FIXEDbasically never works. On other platforms, it depends on the circumstances whether memory can be returned at a given address.