Skip to content

unix: add preadv2 and pwritev2 to android and linux#5157

Open
Elie-Kh wants to merge 1 commit into
rust-lang:mainfrom
Elie-Kh:linux-preadwritev2
Open

unix: add preadv2 and pwritev2 to android and linux#5157
Elie-Kh wants to merge 1 commit into
rust-lang:mainfrom
Elie-Kh:linux-preadwritev2

Conversation

@Elie-Kh

@Elie-Kh Elie-Kh commented Jun 8, 2026

Copy link
Copy Markdown

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.

  • Relevant tests in libc-test/semver have been updated - no tests to modify
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • [~] Tested locally (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

@rustbot

rustbot commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in an Android module

cc @maurer

@Elie-Kh Elie-Kh force-pushed the linux-preadwritev2 branch from ec99a98 to fe75a48 Compare June 8, 2026 16:47
@rustbot rustbot added the A-CI Area: CI-related items label Jun 8, 2026
@rustbot

This comment has been minimized.

@Elie-Kh Elie-Kh changed the title unix: add preadv2 and pwritev2 unix-wide. unix: add preadv2 and pwritev2 to android and linux Jun 8, 2026
@JohnTitor

Copy link
Copy Markdown
Member

Seems you messed up the commits in the branch, could you fix it to have exact one commit?

@Elie-Kh

Elie-Kh commented Jun 8, 2026

Copy link
Copy Markdown
Author

Sure thing, it's been a minute since I've worked with github, let me fix that

@Elie-Kh Elie-Kh force-pushed the linux-preadwritev2 branch from 5ce60e5 to 0257c2a Compare June 8, 2026 21:41
@Elie-Kh

Elie-Kh commented Jun 8, 2026

Copy link
Copy Markdown
Author

And that should have it fixed!

@Elie-Kh Elie-Kh force-pushed the linux-preadwritev2 branch from 0257c2a to 3c6d867 Compare June 9, 2026 00:59
@rustbot

This comment has been minimized.

@Elie-Kh Elie-Kh force-pushed the linux-preadwritev2 branch from 3c6d867 to b55b402 Compare June 9, 2026 18:26
@rustbot

This comment has been minimized.

@Elie-Kh Elie-Kh force-pushed the linux-preadwritev2 branch from b55b402 to d158103 Compare June 9, 2026 18:26
@rustbot

This comment has been minimized.

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
@JohnTitor JohnTitor force-pushed the linux-preadwritev2 branch from d158103 to 1d61311 Compare June 14, 2026 00:13
@rustbot

rustbot commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

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.

@JohnTitor

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: CI-related items S-waiting-on-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants