mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.c:complete further more netbsd's mmap flags
This commit is contained in:
parent
440b3df702
commit
4f248e1b51
@ -603,6 +603,17 @@ 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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user