Skip to content

Commit

Permalink
mman add MAP_CONCEAL mmap flag for openbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 19, 2021
1 parent 1c0bc5c commit 1529038
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 @@ -143,6 +143,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 1529038

Please sign in to comment.