add O_EXEC and O_SEARCH on apple#3659
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
b674c7a to
6293d65
Compare
|
O_SEARCH = (0x40000000 | 0x00100000) does the right thing on macos 13, but on macos 12 the read permission for the directory is still checked on opening, so i think it will be ignored there. (tried on github actions, as I don't own an apple device) if we need a compile time version check to not provide the symbol for macos 12 (older versions are end of life), I currently don't know how to do it, help would be welcome. |
|
☔ The latest upstream changes (presumably #3631) made this pull request unmergeable. Please resolve the merge conflicts. |
6293d65 to
31ddb29
Compare
according to this fcntl.h,they exist: https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/fcntl.h#L184C9-L184C47