-
Notifications
You must be signed in to change notification settings - Fork 713
Enable fcntl OFD commands on macos #2300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hi, thanks for your interest in contributing to Nix! If you want to bump the MSRV, I think this should be done in a separate PR, and you should also update this info in:
|
And, for changes (logic changes and clippy fixes) requested by a newer version libc, I also recommend doing them in a separate PR.
|
I'll follow this up when the libc PR goes through, as it depends heavily on that. Also there are some issues in using 64bit apis on 32bit systems with nix which requires that I work around it for now. |
Feel free to run this to completion. I might revisit it when the libc stuff is merged. I have stopped depending on nix in the meanwhile as it deviates too much from libc. |
You mean those libc breaking changes? They only exist in branch |
I that why I was having trouble? Am I trying to use nix with the wrong branch of libc? |
I am not sure about the trouble you have, but if you want to use libc, you can use the one re-exported by Nix, which is guaranteed to be compatible with Nix. |
db3e036
to
df55d85
Compare
df55d85
to
b45e09a
Compare
This PR adds support for Open File Description (OFD) fcntl commands on macOS. The implementation uses the upstream libc crate which now includes the required constants that were previously only available in a fork. Changes: - Added macOS OFD fcntl command support in src/fcntl.rs - Updated sys/select.rs with improved file descriptor handling - Fixed type casting issues in test_select.rs
b45e09a
to
91d57d8
Compare
Ok this is ready for review again, thanks. |
What does this PR do
See title. Also note I'm waiting on the constants to be exposed in libc, see rust-lang/libc#3563. When those are added I'll adjust the libc deps in Cargo.toml to match.
Checklist:
CONTRIBUTING.md