Expand FreeBSD sys support and strengthen platform regression coverage - #502
Merged
Merged
Conversation
Signed-off-by: LunaStev <luna@lunastev.org>
This was referenced Sep 7, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expand FreeBSD
std/systo amd64, arm64 and riscv64 with direct kernel syscalls, and replace shallow platform cases with functional workloads that exercise the compiler and OS providers together.keventlayout and event error handling. Use direct syscalls for kqueue, scatter/gather I/O, page-size discovery and environment access.USERPROFILE, and corresponding CI coverage.Motivation
Platform support needs executable behavior checks rather than assembly-only placeholders. These workloads exposed parser/codegen defects and missing FreeBSD kernel contracts; this change fixes them and adds regression coverage.
Closes #481
Closes #491
Closes #492
Closes #500
Closes #501
Target and compatibility impact
aarch64-unknown-freebsdandriscv64-unknown-freebsd. FreeBSD RISC-V requires LP64D, including when ABI selection is inferred from target features.Validation
Passed locally:
cargo fmt --all --check./tools/check_std_policy.shRUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --jobs 2cargo clippy --locked --workspace --all-targets --jobs 2 -- -D warningscargo test --locked --workspace --all-targets --jobs 2cargo test --locked --no-default-features --features llvm-target-core64 --jobs 2(57 codegen regressions)cargo build --locked --release --jobs 2python3 tools/check_wave_corpus.py --wavec target/release/wavec --run-std-examples: 272 corpus entries and all 26 std examples passed. Socket examples required execution outside the restricted sandbox.git diff --check.tools/check_freebsd_sys.pyreproduces these checks with supplied images.Checklist
Signed-off-byline.std/.