-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add ppoll() for all unix platforms #537
Conversation
I'm unsure of whether there is support in OS X for this, and I can't find anything online (I'm betting there isn't), but I'm going to let this run through CI to confirm
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@bors: r+ Thanks! |
📌 Commit cd84475 has been approved by |
Add ppoll() for all unix platforms I'm unsure of whether there is support in OS X for this, and I can't find anything online (so I'm betting there isn't), but I'm going to let this run through CI to confirm.
I have a local fix for the styling, so I already know about that, but I also ran things through my local test suite and found some errors I'm not understanding:
But if I look at that file that function looks correct:
I thought maybe it was because the |
Let's see what CI says, it may just be a const/mut or bit width thing |
That same problem is occurring on Travis, so there's definitely something wrong which I can reproduce locally. I also pushed a style fix, but it looks like that retriggered CI, so maybe I shouldn't have done that yet... |
Alright, I think I got it. Had the wrong type for |
So turns out this doesn't exist on Mac or NetBSD, or at least not by that name. There are similar different names for |
It's ok to just leave out this function on those platforms, you can sink the definition farther down the crate hierarchy |
I just pushed it down the stack, but I'm not certain that was correct. OpenBSD and FreeBSD passed their tests, so it's just NetBSD and Mac that don't have it. Should I also expose it in |
Alright, looks like I finally figured it out! @alexcrichton Wanna give this a look-see? |
@bors: r+ |
📌 Commit 88e37f2 has been approved by |
Add ppoll() for all unix platforms I'm unsure of whether there is support in OS X for this, and I can't find anything online (so I'm betting there isn't), but I'm going to let this run through CI to confirm.
☀️ Test successful - status-appveyor, status-travis |
Add ppoll() This will currently fail CI, as the necessary changes haven't hit libc yet. That is tracked in rust-lang/libc#537. This does build on my computer using the changes tracked on that PR, so I'd appreciate any visual review of this code as it should be "done". I also wanted to get this submitted so hopefully it'd be in the queue for the 0.8 release.
Add ppoll() This will currently fail CI, as the necessary changes haven't hit libc yet. That is tracked in rust-lang/libc#537. This does build on my computer using the changes tracked on that PR, so I'd appreciate any visual review of this code as it should be "done". I also wanted to get this submitted so hopefully it'd be in the queue for the 0.8 release.
Add ppoll() This will currently fail CI, as the necessary changes haven't hit libc yet. That is tracked in rust-lang/libc#537. This does build on my computer using the changes tracked on that PR, so I'd appreciate any visual review of this code as it should be "done". I also wanted to get this submitted so hopefully it'd be in the queue for the 0.8 release.
- `usad8`: Sum of 8-bit absolute differences - `usad8a`: Sum of 8-bit absolute differences and constant (usad8(a, b) + c)
I'm unsure of whether there is support in OS X for this, and I can't find anything online (so I'm betting there isn't), but I'm going to let this run through CI to confirm.