Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1522: mman mod adding MAP_ALIGNED_SUPER flag for freebsd. r=asomers a=devnexen



Co-authored-by: David Carlier <devnexen@gmail.com>
  • Loading branch information
bors[bot] and devnexen committed Sep 19, 2021
2 parents 515e99b + b463e01 commit 1c0bc5c
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 1c0bc5c

Please sign in to comment.