From 27685bcf2097605be7bcb6d1e16e2f4747a1a841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 17 Jan 2026 04:19:29 +0100 Subject: [PATCH] std.c: fix O constants for FreeBSD closes https://codeberg.org/ziglang/zig/issues/30861 --- lib/std/c.zig | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 97136976ae..df757fcff9 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -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) {