Revert "std.c: update netbsd/openbsd mman constants"

This reverts commit 64f0059cd33b571d6cf91df45f4cb2e0af9c0742.
This commit is contained in:
Andrew Kelley 2023-07-31 10:50:39 -07:00
parent 643c986838
commit dad7eea8d9
2 changed files with 0 additions and 26 deletions

View File

@ -579,12 +579,6 @@ pub const PROT = struct {
pub const READ = 1; pub const READ = 1;
pub const WRITE = 2; pub const WRITE = 2;
pub const EXEC = 4; pub const EXEC = 4;
pub fn MPROTECT(flag: u32) u32 {
return flag << 3;
}
pub fn MPROTECT_EXTRACT(flag: u32) u32 {
return (flag >> 3) & 0x7;
}
}; };
pub const CLOCK = struct { pub const CLOCK = struct {
@ -627,16 +621,6 @@ pub const MAP = struct {
pub const ALIGNMENT_64PB = MAP.ALIGNED(56); pub const ALIGNMENT_64PB = MAP.ALIGNED(56);
}; };
pub const MADV = struct {
pub const NORMAL = 0;
pub const RANDOM = 1;
pub const SEQUENTIAL = 2;
pub const WILLNEED = 3;
pub const DONTNEED = 4;
pub const SPACEAVAIL = 5;
pub const FREE = 6;
};
pub const MSF = struct { pub const MSF = struct {
pub const ASYNC = 1; pub const ASYNC = 1;
pub const INVALIDATE = 2; pub const INVALIDATE = 2;

View File

@ -466,16 +466,6 @@ pub const MAP = struct {
pub const CONCEAL = 0x8000; pub const CONCEAL = 0x8000;
}; };
pub const MADV = struct {
pub const NORMAL = 0;
pub const RANDOM = 1;
pub const SEQUENTIAL = 2;
pub const WILLNEED = 3;
pub const DONTNEED = 4;
pub const SPACEAVAIL = 5;
pub const FREE = 6;
};
pub const MSF = struct { pub const MSF = struct {
pub const ASYNC = 1; pub const ASYNC = 1;
pub const INVALIDATE = 2; pub const INVALIDATE = 2;