diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-09-19 15:42:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 15:42:22 +0000 |
commit | 8cb9dc5b4ac58dc9f11c77fde5e1914b2d6c4c6c (patch) | |
tree | 8fc8d03ac2e052953d82deda7a388f373f6ccfcb | |
parent | a7fd53a78a6fcf9d96472eb5b3d8db0b4f97ab34 (diff) | |
parent | 1529038d23cd0a642acd922655151cf2bab7b293 (diff) | |
download | nix-8cb9dc5b4ac58dc9f11c77fde5e1914b2d6c4c6c.zip |
Merge #1531
1531: mman add MAP_CONCEAL mmap flag for openbsd r=asomers a=devnexen
Co-authored-by: David Carlier <devnexen@gmail.com>
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | src/sys/mman.rs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 91810187..25de15fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). (#[1525](https://github.com/nix-rust/nix/pull/1525)) - Added `MAP_ALIGNED_SUPER` mmap flag for freebsd. (#[1522](https://github.com/nix-rust/nix/pull/1522)) +- Added `MAP_CONCEAL` mmap flag for openbsd. + (#[1531](https://github.com/nix-rust/nix/pull/1531)) ### Changed diff --git a/src/sys/mman.rs b/src/sys/mman.rs index b8a17e5e..803dc50d 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -144,6 +144,9 @@ libc_bitflags!{ /// Allows to use large pages, underlying alignment based on size. #[cfg(target_os = "freesd")] MAP_ALIGNED_SUPER; + /// Pages will be discarded in the core dumps. + #[cfg(target_os = "openbsd")] + MAP_CONCEAL; } } |