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
59 stars 17 forks source link

with_flags() now ORs the flags #10

Closed vigna closed 1 year ago

vigna commented 1 year ago

This PR makes all with with_flags() methods OR the argument with the current flag setting. This makes it possible for the user to call multiple times with_flags() or ORing several flags and prevent accidental cancellation of previous flags.