authorgravatar for devnexen@gmail.comDavid Carlier <devnexen@gmail.com> 2023-04-29 22:44:32+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-04-30 12:21:35+03:00
log4f248e1b519b001cee67e461068245c142d38e73
treed04afdf0fa0739e3719f5601f5cde786964c7f2d
parent440b3df702f1c8bfddabc1c594a3f49cf0011a63

std.c:complete further more netbsd's mmap flags


1 files changed, 11 insertions(+), 0 deletions(-)

lib/std/c/netbsd.zig+11
......@@ -603,6 +603,17 @@ pub const MAP = struct {
603603 pub const ANON = 0x1000;
604604 pub const ANONYMOUS = ANON;
605605 pub const STACK = 0x2000;
606
607 pub const ALIGNMENT_SHIFT = 24;
608 pub fn ALIGNED(n: u32) u32 {
609 return n << ALIGNMENT_SHIFT;
610 }
611 pub const ALIGNMENT_64KB = MAP.ALIGNED(0xff);
612 pub const ALIGNMENT_16MB = MAP.ALIGNED(16);
613 pub const ALIGNMENT_4GB = MAP.ALIGNED(32);
614 pub const ALIGNMENT_1TB = MAP.ALIGNED(40);
615 pub const ALIGNMENT_256TB = MAP.ALIGNED(48);
616 pub const ALIGNMENT_64PB = MAP.ALIGNED(56);
606617};
607618
608619pub const MSF = struct {