Skip to content

Commit 2fd2b60

Browse files
authored
Merge pull request #3659 from TheJonny/apple-O_SEARCH
add O_EXEC and O_SEARCH on apple
2 parents b1270be + 31ddb29 commit 2fd2b60

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,11 +1035,13 @@ OXTABS
10351035
O_ASYNC
10361036
O_DSYNC
10371037
O_EVTONLY
1038+
O_EXEC
10381039
O_EXLOCK
10391040
O_FSYNC
10401041
O_NDELAY
10411042
O_NOCTTY
10421043
O_NOFOLLOW_ANY
1044+
O_SEARCH
10431045
O_SHLOCK
10441046
O_SYMLINK
10451047
O_SYNC

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,6 +3166,8 @@ pub const O_SYMLINK: ::c_int = 0x00200000;
31663166
pub const O_DSYNC: ::c_int = 0x00400000;
31673167
pub const O_CLOEXEC: ::c_int = 0x01000000;
31683168
pub const O_NOFOLLOW_ANY: ::c_int = 0x20000000;
3169+
pub const O_EXEC: ::c_int = 0x40000000;
3170+
pub const O_SEARCH: ::c_int = O_EXEC | O_DIRECTORY;
31693171
pub const S_IFIFO: mode_t = 0o1_0000;
31703172
pub const S_IFCHR: mode_t = 0o2_0000;
31713173
pub const S_IFBLK: mode_t = 0o6_0000;

0 commit comments

Comments
 (0)