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) {...@@ -8601,18 +8601,21 @@ pub const O = switch (native_os) {
8601 CREAT: bool = false,8601 CREAT: bool = false,
8602 TRUNC: bool = false,8602 TRUNC: bool = false,
8603 EXCL: bool = false,8603 EXCL: bool = false,
8604 DSYNC: bool = false,8604 _12: u3 = 0,
8605 _13: u2 = 0,
8606 NOCTTY: bool = false,8605 NOCTTY: bool = false,
8607 DIRECT: bool = false,8606 DIRECT: bool = false,
8608 DIRECTORY: bool = false,8607 DIRECTORY: bool = false,
8609 NOATIME: bool = false,8608 EXEC: bool = false,
8610 _19: u1 = 0,8609 TTY_INIT: bool = false,
8611 CLOEXEC: bool = false,8610 CLOEXEC: bool = false,
8611 VERIFY: bool = false,
8612 PATH: bool = false,8612 PATH: bool = false,
8613 /// This is typically invalid without also setting `DIRECTORY`.8613 RESOLVE_BENEATH: bool = false,
8614 TMPFILE: bool = false,8614 DSYNC: bool = false,
8615 _: u9 = 0,8615 EMPTY_PATH: bool = false,
8616 XATTR: bool = false,
8617 CLOFORK: bool = false,
8618 _28: u4 = 0,
8616 },8619 },
8617 // https://github.com/SerenityOS/serenity/blob/2808b0376406a40e31293bb3bcb9170374e90506/Kernel/API/POSIX/fcntl.h#L28-L438620 // https://github.com/SerenityOS/serenity/blob/2808b0376406a40e31293bb3bcb9170374e90506/Kernel/API/POSIX/fcntl.h#L28-L43
8618 .serenity => packed struct(c_int) {8621 .serenity => packed struct(c_int) {