summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-19 15:42:22 +0000
committerGitHub <noreply@github.com>2021-09-19 15:42:22 +0000
commit8cb9dc5b4ac58dc9f11c77fde5e1914b2d6c4c6c (patch)
tree8fc8d03ac2e052953d82deda7a388f373f6ccfcb
parenta7fd53a78a6fcf9d96472eb5b3d8db0b4f97ab34 (diff)
parent1529038d23cd0a642acd922655151cf2bab7b293 (diff)
downloadnix-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.md2
-rw-r--r--src/sys/mman.rs3
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;
}
}