diff options
| author | David CARLIER <devnexen@gmail.com> | 2023-03-25 17:15:41 +0000 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-04-04 12:57:16 +0300 |
| commit | 771d07268f7ecc9535ad6fbb8448c76581bf5188 (patch) | |
| tree | 9b2bed033aefb739030f83fa83b18d2f0cb017d3 /lib | |
| parent | a329450aa4107d376ebda753be8a5579dd600c69 (diff) | |
| download | zig-771d07268f7ecc9535ad6fbb8448c76581bf5188.tar.gz zig-771d07268f7ecc9535ad6fbb8448c76581bf5188.zip | |
std: freebsd MAP* constants update, MAP_ALIGNED_SUPER and the MAP_ALIGNED macro.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/c/freebsd.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index a76f8a4871..ccf9153f92 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -622,6 +622,11 @@ pub const MAP = struct { pub const NOCORE = 0x00020000; pub const PREFAULT_READ = 0x00040000; pub const @"32BIT" = 0x00080000; + + pub fn ALIGNED(alignment: u32) u32 { + return alignment << 24; + } + pub const ALIGNED_SUPER = ALIGNED(1); }; pub const MSF = struct { |
