Skip to content

Commit

Permalink
Merge #1531
Browse files Browse the repository at this point in the history
1531: mman add MAP_CONCEAL mmap flag for openbsd r=asomers a=devnexen



Co-authored-by: David Carlier <[email protected]>
  • Loading branch information
bors[bot] and devnexen authored Sep 19, 2021
2 parents a7fd53a + 1529038 commit 8cb9dc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions src/sys/mman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 8cb9dc5

Please sign in to comment.