From 6938157d48e95f30cf58f31addb45cee3c5307e9 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 0d3e513ad8..ff232bb687 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). (#[1515](https://github.com/nix-rust/nix/pull/1515)) - Added `MAP_EXCL` mmap flag for freebsd. (#[1525](https://github.com/nix-rust/nix/pull/1525)) +- 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 e3c36208bf..0ceade7d2c 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -140,6 +140,9 @@ libc_bitflags!{ MAP_NOCACHE; #[cfg(any(target_os = "ios", target_os = "macos"))] MAP_JIT; + /// Pages will be discarded in the core dumps. + #[cfg(target_os = "openbsd")] + MAP_CONCEAL; } }