Skip to content

Commit 1ccdcc3

Browse files
committed
apple: add O_EXEC and O_SEARCH
1 parent b1270be commit 1ccdcc3

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 = 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)