Skip to content

Commit 1529038

Browse files
committed
mman add MAP_CONCEAL mmap flag for openbsd
1 parent 1c0bc5c commit 1529038

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
@@ -143,6 +143,9 @@ libc_bitflags!{
143143
/// Allows to use large pages, underlying alignment based on size.
144144
#[cfg(target_os = "freesd")]
145145
MAP_ALIGNED_SUPER;
146+
/// Pages will be discarded in the core dumps.
147+
#[cfg(target_os = "openbsd")]
148+
MAP_CONCEAL;
146149
}
147150
}
148151

0 commit comments

Comments
 (0)