From b463e014d837236f22d3c8b967e0f25801d294bd Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 12 Sep 2021 15:30:05 +0100 Subject: mman mod adding MAP_ALIGNED_SUPER flag for freebsd. --- CHANGELOG.md | 2 ++ src/sys/mman.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d3e513a..91810187 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/sys/mman.rs b/src/sys/mman.rs index e3c36208..a6fcdd5a 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -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; } } -- cgit v1.2.3