-
Notifications
You must be signed in to change notification settings - Fork 356
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
implement minimal epoll_create1 shim #2357
Conversation
88f0925
to
abaa446
Compare
146a8a9
to
f5cb51d
Compare
Thanks a lot for working on this. :) I am a bit unclear on the status of this PR. It contains several TODOs and no tests, and CI is failing. Is this something you would like a review on, or more of a draft? |
I'm mentoring the work on this. We'll ping you once it's reviewable |
Ah, I see. Reflecting this in the GH status then. |
☔ The latest upstream changes (presumably #2403) made this pull request unmergeable. Please resolve the merge conflicts. |
f5cb51d
to
33c5e7c
Compare
As epoll is linux-specific, the implementation on FileDescriptor should probably be generalized and use something like https://github.com/smol-rs/polling for cross-compiling. And then in the Linux-specific shims you would implement the epoll stuff as a translation to the generic I'm not a maintainer so feel free to ignore me. |
I am, and I have almost no idea about how all of these linux APIs work. Without informed community members telling us where things can be better, we can't do any of this :)
will check this out. Until we reach actual polling operations, we're just implementing what the APIs dictate (thus the |
d44e022
to
141ca06
Compare
3ad58b1
to
51dcc27
Compare
a293897
to
1ae2a84
Compare
1ae2a84
to
368c169
Compare
368c169
to
3ca89af
Compare
3ca89af
to
0167bbb
Compare
This PR does not yet actually handle polling (it just immediately marks everything as ready). In follow up PRs (with tests that actually do something interesting) we'll address this. |
8b531e9
to
94d41f0
Compare
☔ The latest upstream changes (presumably #2727) made this pull request unmergeable. Please resolve the merge conflicts. |
e456363
to
715e404
Compare
Sorry for the fallout, that's due to some parallel refactor. I pushed a commit that should make it build again. |
Thank you! I was wondering what I missed. :) |
All right, looks green. :) Can you squash the commits? |
3f62ab0
to
0dfa31b
Compare
@bors r+ |
@bors r+ |
💡 This pull request was already approved, no need to approve it again. |
@bors retry |
@bors r- |
@bors r+ |
☀️ Test successful - checks-actions |
update Miri Noteworthy PRs: - rust-lang/miri#2357 - rust-lang/miri#2646 - rust-lang/miri#2718 - rust-lang/miri#2721 - rust-lang/miri#2725
update Miri Noteworthy PRs: - rust-lang#2357 - rust-lang#2646 - rust-lang#2718 - rust-lang#2721 - rust-lang#2725
update Miri Noteworthy PRs: - rust-lang/miri#2357 - rust-lang/miri#2646 - rust-lang/miri#2718 - rust-lang/miri#2721 - rust-lang/miri#2725
Implements minimal shim for #602