Skip to content

wasi: add all _SC_* sysconf constants from wasi-libc#5030

Closed
surban wants to merge 1 commit intorust-lang:libc-0.2from
rust-wasi-web:wasip1-sysconf-0.2
Closed

wasi: add all _SC_* sysconf constants from wasi-libc#5030
surban wants to merge 1 commit intorust-lang:libc-0.2from
rust-wasi-web:wasip1-sysconf-0.2

Conversation

@surban
Copy link
Contributor

@surban surban commented Mar 23, 2026

Add the complete set of SC* constants from wasi-libc's musl-based unistd.h.

(backport #5023)
(cherry picked from commit 2aa834e)

@rustbot label +stable-nominated

Add the complete set of _SC_* constants from wasi-libc's musl-based unistd.h.

(backport <rust-lang#5023>)
(cherry picked from commit 2aa834e)
Copilot AI review requested due to automatic review settings March 23, 2026 10:06
@rustbot rustbot added S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Mar 23, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 23, 2026

⚠️ Warning ⚠️

  • Pull requests are usually filed against the main branch for this repo, but this one is against libc-0.2. Please double check that you specified the right target!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the full set of POSIX _SC_* sysconf name constants for WASI targets, matching wasi-libc’s musl-derived unistd.h, and updates the semver surface test list accordingly.

Changes:

  • Define the complete _SC_* constant set in src/wasi/mod.rs (including aliases like _SC_PAGE_SIZE).
  • Update libc-test/semver/wasi.txt to include the newly exposed _SC_* symbols for semver checking.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/wasi/mod.rs Adds the missing _SC_* sysconf selector constants for WASI.
libc-test/semver/wasi.txt Extends WASI semver API list to cover the new _SC_* exports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JohnTitor
Copy link
Member

Thanks! But we do backports when making a new release, your PR is labeled as stable-nominated so it'll be included.

@JohnTitor JohnTitor closed this Mar 23, 2026
@surban surban deleted the wasip1-sysconf-0.2 branch March 23, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants