authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-18 00:55:08 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-18 00:55:08 -08:00
logeed99fee94ae00310d01e1235196aec43ca1f939
tree6d06a9c60f79bea1bd4ae2a841d9fc3158ebeb4a
parentd54554494f64a9682a02180227aadd9dbec9fe98

mising arch bits for O


1 files changed, 68 insertions(+), 0 deletions(-)

mod.zig+68
......@@ -1435,7 +1435,9 @@ pub const AT = struct {
14351435
14361436pub const O = struct {
14371437 pub usingnamespace switch (builtin.target.cpu.arch) {
1438 // generic
14381439 .x86_64,
1440 .riscv64,
14391441 => struct {
14401442 pub const CREAT = 0o100;
14411443 pub const EXCL = 0o200;
......@@ -1457,6 +1459,72 @@ pub const O = struct {
14571459 pub const TMPFILE = 0o20200000;
14581460 pub const NDELAY = O.NONBLOCK;
14591461 },
1462 .aarch64,
1463 => struct {
1464 pub const CREAT = 0o100;
1465 pub const EXCL = 0o200;
1466 pub const NOCTTY = 0o400;
1467 pub const TRUNC = 0o1000;
1468 pub const APPEND = 0o2000;
1469 pub const NONBLOCK = 0o4000;
1470 pub const DSYNC = 0o10000;
1471 pub const SYNC = 0o4010000;
1472 pub const RSYNC = 0o4010000;
1473 pub const DIRECTORY = 0o40000;
1474 pub const NOFOLLOW = 0o100000;
1475 pub const CLOEXEC = 0o2000000;
1476 pub const ASYNC = 0o20000;
1477 pub const DIRECT = 0o200000;
1478 pub const LARGEFILE = 0o400000;
1479 pub const NOATIME = 0o1000000;
1480 pub const PATH = 0o10000000;
1481 pub const TMPFILE = 0o20040000;
1482 pub const NDELAY = O.NONBLOCK;
1483 },
1484 .powerpc64le,
1485 => struct {
1486 pub const CREAT = 0o100;
1487 pub const EXCL = 0o200;
1488 pub const NOCTTY = 0o400;
1489 pub const TRUNC = 0o1000;
1490 pub const APPEND = 0o2000;
1491 pub const NONBLOCK = 0o4000;
1492 pub const DSYNC = 0o10000;
1493 pub const SYNC = 0o4010000;
1494 pub const RSYNC = 0o4010000;
1495 pub const DIRECTORY = 0o40000;
1496 pub const NOFOLLOW = 0o100000;
1497 pub const CLOEXEC = 0o2000000;
1498 pub const ASYNC = 0o20000;
1499 pub const DIRECT = 0o400000;
1500 pub const LARGEFILE = 0o200000;
1501 pub const NOATIME = 0o1000000;
1502 pub const PATH = 0o10000000;
1503 pub const TMPFILE = 0o20040000;
1504 pub const NDELAY = O.NONBLOCK;
1505 },
1506 .mips64el,
1507 => struct {
1508 pub const CREAT = 0o400;
1509 pub const EXCL = 0o2000;
1510 pub const NOCTTY = 0o4000;
1511 pub const TRUNC = 0o1000;
1512 pub const APPEND = 0o010;
1513 pub const NONBLOCK = 0o200;
1514 pub const DSYNC = 0o020;
1515 pub const SYNC = 0o40020;
1516 pub const RSYNC = 0o40020;
1517 pub const DIRECTORY = 0o200000;
1518 pub const NOFOLLOW = 0o400000;
1519 pub const CLOEXEC = 0o2000000;
1520 pub const ASYNC = 0o10000;
1521 pub const DIRECT = 0o100000;
1522 pub const LARGEFILE = 0o20000;
1523 pub const NOATIME = 0o1000000;
1524 pub const PATH = 0o10000000;
1525 pub const TMPFILE = 0o20200000;
1526 pub const NDELAY = O.NONBLOCK;
1527 },
14601528 else => @compileError("TODO"),
14611529 };
14621530 pub const SEARCH = O.PATH;