| author | |
| committer | |
| log | d956d30167665ae935ab123b4183f9aead79fa33 |
| tree | ced7f58adde8ba9ba10731bb41257452e3eb85d5 |
| parent | 9017efee220950b11070242415b6dc456d4442df |
2 files changed, 41 insertions(+), 41 deletions(-)
std/os/linux/index.zig+41| ... | @@ -624,6 +624,47 @@ pub const S_IWOTH = 0o002; | ... | @@ -624,6 +624,47 @@ pub const S_IWOTH = 0o002; |
| 624 | pub const S_IXOTH = 0o001; | 624 | pub const S_IXOTH = 0o001; |
| 625 | pub const S_IRWXO = 0o007; | 625 | pub const S_IRWXO = 0o007; |
| 626 | 626 | ||
| 627 | pub const O_CREAT = 0o100; | ||
| 628 | pub const O_EXCL = 0o200; | ||
| 629 | pub const O_NOCTTY = 0o400; | ||
| 630 | pub const O_TRUNC = 0o1000; | ||
| 631 | pub const O_APPEND = 0o2000; | ||
| 632 | pub const O_NONBLOCK = 0o4000; | ||
| 633 | pub const O_DSYNC = 0o10000; | ||
| 634 | pub const O_SYNC = 0o4010000; | ||
| 635 | pub const O_RSYNC = 0o4010000; | ||
| 636 | pub const O_DIRECTORY = 0o200000; | ||
| 637 | pub const O_NOFOLLOW = 0o400000; | ||
| 638 | pub const O_CLOEXEC = 0o2000000; | ||
| 639 | |||
| 640 | pub const O_ASYNC = 0o20000; | ||
| 641 | pub const O_DIRECT = 0o40000; | ||
| 642 | pub const O_LARGEFILE = 0; | ||
| 643 | pub const O_NOATIME = 0o1000000; | ||
| 644 | pub const O_PATH = 0o10000000; | ||
| 645 | pub const O_TMPFILE = 0o20200000; | ||
| 646 | pub const O_NDELAY = O_NONBLOCK; | ||
| 647 | |||
| 648 | pub const F_DUPFD = 0; | ||
| 649 | pub const F_GETFD = 1; | ||
| 650 | pub const F_SETFD = 2; | ||
| 651 | pub const F_GETFL = 3; | ||
| 652 | pub const F_SETFL = 4; | ||
| 653 | |||
| 654 | pub const F_SETOWN = 8; | ||
| 655 | pub const F_GETOWN = 9; | ||
| 656 | pub const F_SETSIG = 10; | ||
| 657 | pub const F_GETSIG = 11; | ||
| 658 | |||
| 659 | pub const F_GETLK = 5; | ||
| 660 | pub const F_SETLK = 6; | ||
| 661 | pub const F_SETLKW = 7; | ||
| 662 | |||
| 663 | pub const F_SETOWN_EX = 15; | ||
| 664 | pub const F_GETOWN_EX = 16; | ||
| 665 | |||
| 666 | pub const F_GETOWNER_UIDS = 17; | ||
| 667 | |||
| 627 | pub fn S_ISREG(m: u32) bool { | 668 | pub fn S_ISREG(m: u32) bool { |
| 628 | return m & S_IFMT == S_IFREG; | 669 | return m & S_IFMT == S_IFREG; |
| 629 | } | 670 | } |
std/os/linux/x86_64.zig-41| ... | @@ -330,47 +330,6 @@ pub const SYS_userfaultfd = 323; | ... | @@ -330,47 +330,6 @@ pub const SYS_userfaultfd = 323; |
| 330 | pub const SYS_membarrier = 324; | 330 | pub const SYS_membarrier = 324; |
| 331 | pub const SYS_mlock2 = 325; | 331 | pub const SYS_mlock2 = 325; |
| 332 | 332 | ||
| 333 | pub const O_CREAT = 0o100; | ||
| 334 | pub const O_EXCL = 0o200; | ||
| 335 | pub const O_NOCTTY = 0o400; | ||
| 336 | pub const O_TRUNC = 0o1000; | ||
| 337 | pub const O_APPEND = 0o2000; | ||
| 338 | pub const O_NONBLOCK = 0o4000; | ||
| 339 | pub const O_DSYNC = 0o10000; | ||
| 340 | pub const O_SYNC = 0o4010000; | ||
| 341 | pub const O_RSYNC = 0o4010000; | ||
| 342 | pub const O_DIRECTORY = 0o200000; | ||
| 343 | pub const O_NOFOLLOW = 0o400000; | ||
| 344 | pub const O_CLOEXEC = 0o2000000; | ||
| 345 | |||
| 346 | pub const O_ASYNC = 0o20000; | ||
| 347 | pub const O_DIRECT = 0o40000; | ||
| 348 | pub const O_LARGEFILE = 0; | ||
| 349 | pub const O_NOATIME = 0o1000000; | ||
| 350 | pub const O_PATH = 0o10000000; | ||
| 351 | pub const O_TMPFILE = 0o20200000; | ||
| 352 | pub const O_NDELAY = O_NONBLOCK; | ||
| 353 | |||
| 354 | pub const F_DUPFD = 0; | ||
| 355 | pub const F_GETFD = 1; | ||
| 356 | pub const F_SETFD = 2; | ||
| 357 | pub const F_GETFL = 3; | ||
| 358 | pub const F_SETFL = 4; | ||
| 359 | |||
| 360 | pub const F_SETOWN = 8; | ||
| 361 | pub const F_GETOWN = 9; | ||
| 362 | pub const F_SETSIG = 10; | ||
| 363 | pub const F_GETSIG = 11; | ||
| 364 | |||
| 365 | pub const F_GETLK = 5; | ||
| 366 | pub const F_SETLK = 6; | ||
| 367 | pub const F_SETLKW = 7; | ||
| 368 | |||
| 369 | pub const F_SETOWN_EX = 15; | ||
| 370 | pub const F_GETOWN_EX = 16; | ||
| 371 | |||
| 372 | pub const F_GETOWNER_UIDS = 17; | ||
| 373 | |||
| 374 | pub const VDSO_USEFUL = true; | 333 | pub const VDSO_USEFUL = true; |
| 375 | pub const VDSO_CGT_SYM = "__vdso_clock_gettime"; | 334 | pub const VDSO_CGT_SYM = "__vdso_clock_gettime"; |
| 376 | pub const VDSO_CGT_VER = "LINUX_2.6"; | 335 | pub const VDSO_CGT_VER = "LINUX_2.6"; |