Skip to content

Commit

Permalink
Merge pull request #3668 from SteveLauC/feat/O_EXEC_O_SEARCH_libc_0.2…
Browse files Browse the repository at this point in the history
…_apple

feat: O_EXEC/O_SEARCH for apple platforms
  • Loading branch information
JohnTitor committed Apr 29, 2024
2 parents e425fe3 + 4b74761 commit b12e700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1035,11 +1035,13 @@ OXTABS
O_ASYNC
O_DSYNC
O_EVTONLY
O_EXEC
O_EXLOCK
O_FSYNC
O_NDELAY
O_NOCTTY
O_NOFOLLOW_ANY
O_SEARCH
O_SHLOCK
O_SYMLINK
O_SYNC
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3252,6 +3252,8 @@ pub const O_SYMLINK: ::c_int = 0x00200000;
pub const O_DSYNC: ::c_int = 0x00400000;
pub const O_CLOEXEC: ::c_int = 0x01000000;
pub const O_NOFOLLOW_ANY: ::c_int = 0x20000000;
pub const O_EXEC: ::c_int = 0x40000000;
pub const O_SEARCH: ::c_int = O_EXEC | O_DIRECTORY;
pub const S_IFIFO: mode_t = 4096;
pub const S_IFCHR: mode_t = 8192;
pub const S_IFBLK: mode_t = 24576;
Expand Down

0 comments on commit b12e700

Please sign in to comment.