From c9de5304ab250c3b55fc6f8d0502eba51c342c67 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 11:17:25 -0700 Subject: [PATCH] Revert "std.c:complete further more netbsd's mmap flags" This reverts commit 4f248e1b519b001cee67e461068245c142d38e73. --- lib/std/c/netbsd.zig | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 6e4872612d..03ca0f481c 100644 --- a/lib/std/c/netbsd.zig +++ b/lib/std/c/netbsd.zig @@ -603,17 +603,6 @@ pub const MAP = struct { pub const ANON = 0x1000; pub const ANONYMOUS = ANON; pub const STACK = 0x2000; - - pub const ALIGNMENT_SHIFT = 24; - pub fn ALIGNED(n: u32) u32 { - return n << ALIGNMENT_SHIFT; - } - pub const ALIGNMENT_64KB = MAP.ALIGNED(0xff); - pub const ALIGNMENT_16MB = MAP.ALIGNED(16); - pub const ALIGNMENT_4GB = MAP.ALIGNED(32); - pub const ALIGNMENT_1TB = MAP.ALIGNED(40); - pub const ALIGNMENT_256TB = MAP.ALIGNED(48); - pub const ALIGNMENT_64PB = MAP.ALIGNED(56); }; pub const MSF = struct {