authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-17 04:19:29+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-17 12:13:20+01:00
log27685bcf2097605be7bcb6d1e16e2f4747a1a841
tree90edffcc6901e2c3e437975bec1d96dff6bfca61
parentd417441f4f05090f29b193c52c5093344382bd2a

std.c: fix O constants for FreeBSD

closes https://codeberg.org/ziglang/zig/issues/30861

1 files changed, 10 insertions(+), 7 deletions(-)

lib/std/c.zig+10-7
......@@ -8601,18 +8601,21 @@ pub const O = switch (native_os) {
86018601 CREAT: bool = false,
86028602 TRUNC: bool = false,
86038603 EXCL: bool = false,
8604 DSYNC: bool = false,
8605 _13: u2 = 0,
8604 _12: u3 = 0,
86068605 NOCTTY: bool = false,
86078606 DIRECT: bool = false,
86088607 DIRECTORY: bool = false,
8609 NOATIME: bool = false,
8610 _19: u1 = 0,
8608 EXEC: bool = false,
8609 TTY_INIT: bool = false,
86118610 CLOEXEC: bool = false,
8611 VERIFY: bool = false,
86128612 PATH: bool = false,
8613 /// This is typically invalid without also setting `DIRECTORY`.
8614 TMPFILE: bool = false,
8615 _: u9 = 0,
8613 RESOLVE_BENEATH: bool = false,
8614 DSYNC: bool = false,
8615 EMPTY_PATH: bool = false,
8616 XATTR: bool = false,
8617 CLOFORK: bool = false,
8618 _28: u4 = 0,
86168619 },
86178620 // https://github.com/SerenityOS/serenity/blob/2808b0376406a40e31293bb3bcb9170374e90506/Kernel/API/POSIX/fcntl.h#L28-L43
86188621 .serenity => packed struct(c_int) {