Skip to content

Commit 4c5155a

Browse files
committed
apple: add O_EXEC and O_SEARCH
1 parent 71c79d5 commit 4c5155a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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 = 4096;
31703172
pub const S_IFCHR: mode_t = 8192;
31713173
pub const S_IFBLK: mode_t = 24576;

0 commit comments

Comments
 (0)