Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MAP_SHARED_VALIDATE & MAP_SYNC (#2499)
* Add MAP_SHARED_VALIDATE & MAP_SYNC This pull adds two flags: MAP_SHARED_VALIDATE & MAP_SYNC implemented on https://github.com/rust-lang/libc The MAP_SHARED_VALIDATE flag was added to linux since 4.15, its a flag that does two things: provide backwards compatibility with old mmap implementations that don't check for flags, and allow new flags to be added. MAP_SYNC, on the other hand, was added to allow mmap to utilize Direct Accses (DAX) on hardware that support it (non-volatile memory devices) or in general: any ram-shaped filesystem. both flags are available on both linux and android. * fix CI * fix CI * add to changelog * do not compile on hurd and uclibc * do not compile on freebsdlike * apply requested conditional compilation fixes * apply requested conditional compilation fixes
- Loading branch information