Skip to content

Commit 4b74761

Browse files
committed
feat: O_EXEC/O_SEARCH for apple platforms
1 parent e425fe3 commit 4b74761

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
@@ -3252,6 +3252,8 @@ pub const O_SYMLINK: ::c_int = 0x00200000;
32523252
pub const O_DSYNC: ::c_int = 0x00400000;
32533253
pub const O_CLOEXEC: ::c_int = 0x01000000;
32543254
pub const O_NOFOLLOW_ANY: ::c_int = 0x20000000;
3255+
pub const O_EXEC: ::c_int = 0x40000000;
3256+
pub const O_SEARCH: ::c_int = O_EXEC | O_DIRECTORY;
32553257
pub const S_IFIFO: mode_t = 4096;
32563258
pub const S_IFCHR: mode_t = 8192;
32573259
pub const S_IFBLK: mode_t = 24576;

0 commit comments

Comments
 (0)