Skip to content

Commit 8cb9dc5

Browse files
bors[bot]devnexen
andauthored
Merge #1531
1531: mman add MAP_CONCEAL mmap flag for openbsd r=asomers a=devnexen Co-authored-by: David Carlier <devnexen@gmail.com>
2 parents a7fd53a + 1529038 commit 8cb9dc5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
4646
(#[1525](https://github.com/nix-rust/nix/pull/1525))
4747
- Added `MAP_ALIGNED_SUPER` mmap flag for freebsd.
4848
(#[1522](https://github.com/nix-rust/nix/pull/1522))
49+
- Added `MAP_CONCEAL` mmap flag for openbsd.
50+
(#[1531](https://github.com/nix-rust/nix/pull/1531))
4951

5052
### Changed
5153

src/sys/mman.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ libc_bitflags!{
144144
/// Allows to use large pages, underlying alignment based on size.
145145
#[cfg(target_os = "freesd")]
146146
MAP_ALIGNED_SUPER;
147+
/// Pages will be discarded in the core dumps.
148+
#[cfg(target_os = "openbsd")]
149+
MAP_CONCEAL;
147150
}
148151
}
149152

0 commit comments

Comments
 (0)