diff --git a/CHANGELOG.md b/CHANGELOG.md index 9181018707..25de15fef8 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 b8a17e5e77..803dc50ddf 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; } }