mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.c: fix O constants for FreeBSD
closes https://codeberg.org/ziglang/zig/issues/30861
This commit is contained in:
parent
d417441f4f
commit
27685bcf20
1 changed files with 10 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue