std.c: fix O constants for FreeBSD

closes https://codeberg.org/ziglang/zig/issues/30861
This commit is contained in:
Alex Rønne Petersen 2026-01-17 04:19:29 +01:00
parent d417441f4f
commit 27685bcf20

View file

@ -8601,18 +8601,21 @@ pub const O = switch (native_os) {
CREAT: bool = false,
TRUNC: bool = false,
EXCL: bool = false,
DSYNC: bool = false,
_13: u2 = 0,
_12: u3 = 0,
NOCTTY: bool = false,
DIRECT: bool = false,
DIRECTORY: bool = false,
NOATIME: bool = false,
_19: u1 = 0,
EXEC: bool = false,
TTY_INIT: bool = false,
CLOEXEC: bool = false,
VERIFY: bool = false,
PATH: bool = false,
/// This is typically invalid without also setting `DIRECTORY`.
TMPFILE: bool = false,
_: u9 = 0,
RESOLVE_BENEATH: bool = false,
DSYNC: bool = false,
EMPTY_PATH: bool = false,
XATTR: bool = false,
CLOFORK: bool = false,
_28: u4 = 0,
},
// https://github.com/SerenityOS/serenity/blob/2808b0376406a40e31293bb3bcb9170374e90506/Kernel/API/POSIX/fcntl.h#L28-L43
.serenity => packed struct(c_int) {