Skip to content

Commit b463e01

Browse files
committed
mman mod adding MAP_ALIGNED_SUPER flag for freebsd.
1 parent f0d6d04 commit b463e01

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
@@ -44,6 +44,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
4444
(#[1515](https://github.com/nix-rust/nix/pull/1515))
4545
- Added `MAP_EXCL` mmap flag for freebsd.
4646
(#[1525](https://github.com/nix-rust/nix/pull/1525))
47+
- Added `MAP_ALIGNED_SUPER` mmap flag for freebsd.
48+
(#[1522](https://github.com/nix-rust/nix/pull/1522))
4749

4850
### Changed
4951

src/sys/mman.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ libc_bitflags!{
140140
MAP_NOCACHE;
141141
#[cfg(any(target_os = "ios", target_os = "macos"))]
142142
MAP_JIT;
143+
/// Allows to use large pages, underlying alignment based on size.
144+
#[cfg(target_os = "freesd")]
145+
MAP_ALIGNED_SUPER;
143146
}
144147
}
145148

0 commit comments

Comments
 (0)