From 1529038d23cd0a642acd922655151cf2bab7b293 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 19 Sep 2021 12:42:05 +0100 Subject: [PATCH] mman add MAP_CONCEAL mmap flag for openbsd --- CHANGELOG.md | 2 ++ src/sys/mman.rs | 3 +++ 2 files changed, 5 insertions(+) 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 30d538816a..44af62c844 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -143,6 +143,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; } }