Skip to content

fix: Correct missing-args messages for sched_getaffinity and getenv shims#21881

Open
cuiweixie wants to merge 1 commit intorust-lang:masterfrom
cuiweixie:fix/shim-libc-missing-args-messages
Open

fix: Correct missing-args messages for sched_getaffinity and getenv shims#21881
cuiweixie wants to merge 1 commit intorust-lang:masterfrom
cuiweixie:fix/shim-libc-missing-args-messages

Conversation

@cuiweixie
Copy link
Copy Markdown
Contributor

Summary

When arguments were missing, sched_getaffinity and getenv reported libc::write args are not provided. Use shim-specific messages instead.

Notes

Assisted by an AI coding tool (see CONTRIBUTING.md).

…hims

These branches reused the libc::write error string when arguments were absent.

Assisted by an AI coding tool (see CONTRIBUTING.md).
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 26, 2026
@lnicola
Copy link
Copy Markdown
Member

lnicola commented Mar 30, 2026

@cuiweixie can you run cargo fmt and squash?

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

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants