From 771d07268f7ecc9535ad6fbb8448c76581bf5188 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 25 Mar 2023 17:15:41 +0000 Subject: [PATCH] std: freebsd MAP* constants update, MAP_ALIGNED_SUPER and the MAP_ALIGNED macro. --- lib/std/c/freebsd.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index a76f8a4871..ccf9153f92 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -622,6 +622,11 @@ pub const MAP = struct { pub const NOCORE = 0x00020000; pub const PREFAULT_READ = 0x00040000; pub const @"32BIT" = 0x00080000; + + pub fn ALIGNED(alignment: u32) u32 { + return alignment << 24; + } + pub const ALIGNED_SUPER = ALIGNED(1); }; pub const MSF = struct {