diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-06 21:12:11 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-06 21:12:11 -0700 |
| commit | 9f3165540ed0e2b1fec0ab2eb16d4c06d899c86a (patch) | |
| tree | c452568f46d251765d42d7db3d3b2d8471eae787 /lib/std/os/linux/x86_64.zig | |
| parent | 3da6043e2c3fa657cc7261e8cffdf3564c02dda9 (diff) | |
| download | zig-9f3165540ed0e2b1fec0ab2eb16d4c06d899c86a.tar.gz zig-9f3165540ed0e2b1fec0ab2eb16d4c06d899c86a.zip | |
std.os.linux.MAP: use a packed struct
Introduces type safety to this constant. Eliminates one use of
`usingnamespace`.
Diffstat (limited to 'lib/std/os/linux/x86_64.zig')
| -rw-r--r-- | lib/std/os/linux/x86_64.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/std/os/linux/x86_64.zig b/lib/std/os/linux/x86_64.zig index ce8e1133ae..6d4ab11abb 100644 --- a/lib/std/os/linux/x86_64.zig +++ b/lib/std/os/linux/x86_64.zig @@ -177,21 +177,6 @@ pub const F = struct { pub const UNLCK = 2; }; -pub const MAP = struct { - /// only give out 32bit addresses - pub const @"32BIT" = 0x40; - /// stack-like segment - pub const GROWSDOWN = 0x0100; - /// ETXTBSY - pub const DENYWRITE = 0x0800; - /// mark it as an executable - pub const EXECUTABLE = 0x1000; - /// pages are locked - pub const LOCKED = 0x2000; - /// don't check for reservations - pub const NORESERVE = 0x4000; -}; - pub const VDSO = struct { pub const CGT_SYM = "__vdso_clock_gettime"; pub const CGT_VER = "LINUX_2.6"; |
