Repository navigation
Fix native providers and add Darwin and FreeBSD runtime validation - #800
Merged
LunaStev merged 3 commits intoSep 26, 2026
Merged
Conversation
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
This was referenced Sep 26, 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
Fix native provider defects and add execution coverage for supported OS targets:
dup2descriptors, normalize theloong64target alias, and export DarwinMAP_ANONYMOUS.BCryptGenRandomand automaticbcryptlinking, plus FreeBSD amd64 randomness through the rawgetrandomsyscall. Preserve partial-fill progress and failures.Motivation
These defects report invalid operations as successful, lose native error information, misrepresent Windows timestamps, and leave system randomness unavailable on supported targets. Existing compile-only checks also leave gaps in Darwin ABI and FreeBSD kernel validation.
Closes #779
Closes #780
Closes #781
Closes #782
Closes #783
Closes #786
Closes #787
Closes #788
Closes #789
Target and compatibility impact
Public API shapes remain unchanged. Windows applications using the default native link gain the system
bcryptdependency. FreeBSD entropy support is scoped to amd64. DarwinMAP_ANONremains available alongside its alias. Missing kqueue registrations return ENOENT consistently with the existing FreeBSD provider.Native macOS, Windows and FreeBSD execution is intentionally assigned to this PR's CI; local cross-compilation and mocked OS calls are not claimed as native verification. No libc FFI is added. The mirror workflow and active contributor changes are untouched.
Validation
Checkout compiler/std, LLVM 21, Cargo
--locked --jobs 2:cargo test --workspace --all-targets: 304 passed.cargo test --test native_providers: 4 passed, including O0/O2 OS-boundary failures, native Linux descriptor checks, and cross-target provider/ABI compilation.cargo build --releaseandpython3 tools/check_wave_corpus.py --wavec target/release/wavec --run-std-examples: 291 corpus checks and 26 examples passed.-D warnings, formatting, std policy, case manifest and diff checks passed.Checklist
Signed-off-byline.std/.