StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

change MmapFlags::COPY_ON_WRITE to MmapFlags::SHARED #31

Closed StephanvanSchaik closed 1 year ago

StephanvanSchaik commented 1 year ago

Change MmapFlags::COPY_ON_WRITE to MmapFlags::SHARED such that private memory mappings are the default, and since copy-on-write semantics mostly only make sense for file mappings anyway.