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 copy_file_range to linux_like #1704
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) 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. |
Hm, I think Android should have that but CI failed, maybe SDK version or something else is wrong? If you don't need that in Android or emscripten right now, I'd suggest putting that in |
Yes, Linux would be enough for now, thanks.
This is weird. According to musl's WHATSNEW, it was added on 1.1.24:
|
I've reproduced the issue in a VM. I suspect the problem is that, despite installing musl 1.1.24 on the container, Rust is using the libc bundled with the x86_64-unknown-linux-musl. Should I add it to |
I'm on a break now and unsure that I have time to investigate/tweak CI atm. So the former is a better option for me. |
This is a Linux-only feature that was already present as a syscall. Add it just to linux/gnu for the moment, as the musl version bundled in the Rust's x86_64-unknown-linux-musl toolchain doesn't include it yet. Signed-off-by: Sergio Lopez <slp@redhat.com>
Works for me 👍 |
The failures are unrelated, closing/re-opening to re-trigger CI... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
It was already present as a syscall, and both glibc and musl support
it, so add its function definition to export it to crate users.
Signed-off-by: Sergio Lopez slp@redhat.com