Skip to content

Commit

Permalink
mman mod adding MAP_ALIGNED_SUPER flag for freebsd.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 19, 2021
1 parent f0d6d04 commit b463e01
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 @@ -44,6 +44,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1515](https://github.com/nix-rust/nix/pull/1515))
- Added `MAP_EXCL` mmap flag for freebsd.
(#[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))

### 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 @@ -140,6 +140,9 @@ libc_bitflags!{
MAP_NOCACHE;
#[cfg(any(target_os = "ios", target_os = "macos"))]
MAP_JIT;
/// Allows to use large pages, underlying alignment based on size.
#[cfg(target_os = "freesd")]
MAP_ALIGNED_SUPER;
}
}

Expand Down

0 comments on commit b463e01

Please sign in to comment.