unix: add preadv2 and pwritev2 to android and linux#5157
Conversation
|
Some changes occurred in an Android module cc @maurer |
ec99a98 to
fe75a48
Compare
This comment has been minimized.
This comment has been minimized.
|
Seems you messed up the commits in the branch, could you fix it to have exact one commit? |
|
Sure thing, it's been a minute since I've worked with github, let me fix that |
5ce60e5 to
0257c2a
Compare
|
And that should have it fixed! |
0257c2a to
3c6d867
Compare
This comment has been minimized.
This comment has been minimized.
3c6d867 to
b55b402
Compare
This comment has been minimized.
This comment has been minimized.
b55b402 to
d158103
Compare
This comment has been minimized.
This comment has been minimized.
d158103 to
1d61311
Compare
This comment has been minimized.
This comment has been minimized.
|
Seems you need some more ignores: https://github.com/rust-lang/libc/actions/runs/27483200559/job/81234642626?pr=5157 |
Add preadv2 and pwrite2 to linux and Android, to allow using the new flags introduced in rust-lang#4452. Add flags to Android too Move definitions from musl and gnu to linux/mod.rs instead of each separate system alone. Skip test on Android due to the definitions being introduced in API 33
1d61311 to
49416c1
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
| #[cfg_attr(gnu_file_offset_bits64, link_name = "preadv64v2")] | ||
| pub fn preadv2( | ||
| fd: c_int, | ||
| iov: *const crate::iovec, | ||
| iovcnt: c_int, | ||
| offset: off_t, | ||
| flags: c_int, | ||
| ) -> ssize_t; | ||
| #[cfg_attr(gnu_file_offset_bits64, link_name = "pwritev64v2")] | ||
| pub fn pwritev2( | ||
| fd: c_int, | ||
| iov: *const crate::iovec, | ||
| iovcnt: c_int, | ||
| offset: off_t, | ||
| flags: c_int, | ||
| ) -> ssize_t; |
There was a problem hiding this comment.
I think these aren't available in uclibc so should be left as is (link a source please if this isn't accurate)
|
Reminder, once the PR becomes ready for a review, use |
Add preadv2 and pwrite2 to linux and Android, making majority of linux_like based systems have support, to allow using the new flags introduced in #4452. Move definitions to linux_like/mod.rs instead of each separate system alone.
libc-test/semverhave been updated - no tests to modify*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
Getting error while testing locally due to different linux version and mismatch of SW_MAX and MS_NOUSER. Modifying those to match local system (0x11 and 0x80000000) shows passing tests using
cargo test.Unable to test other systems, need to run CI