Repository navigation
Conversation
AI-assisted: yes. Part of the locally tested library change. Full libs build and six focused Windows tests pass; Linux and games have not been run.
AI-assisted: yes. Part of the locally tested library change. Full libs build and six focused Windows tests pass; Linux and games have not been run.
AI-assisted: yes. Part of the locally tested library change. Full libs build and six focused Windows tests pass; Linux and games have not been run.
This was referenced Oct 9, 2026
Collaborator
|
Same as #2058, for |
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.
What
Adds
bcopy(RMo7j0iTPfA) with its source-first argument order and overlap-safememmovebehavior. Zero-length calls do not access either pointer. Reference: FreeBSD bcopy.Tested
guest_bcopypasses: every valid source offset, destination offset and length in a 64-byte region is checked against an unchanged-source snapshot, including identical ranges, both overlap directions, adjacent and disjoint ranges, and whole-buffer guards. Also covers separate buffers, binary data, null pointers for zero bytes, and errno preservation.Windows 11, WinLibs MinGW-w64 GCC 15.2.0 r7 UCRT/posix/SEH, Ninja Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON; basef145139676a48306681d3a4d5fabf83938759daf.Combined validation of these three independent branches: full
libstarget built successfully, including NID patching;guest_memmem,guest_bcopy, both line-input tests,guest_standard_streams, andguest_errorspass (6/6). All four NIDs are present in patchedlibc.prx. Conventions, diff whitespace and test registration checks pass. The branches were also built and tested individually before integration.Before publication, actual library diffs of 559 candidate PR heads were checked for these names and NIDs, including broad PRs and newer heads; no other implementation of these four exports was found. The candidates cover the cached open-PR list and every newer PR head; some candidates may have closed since that list was read.
Linux, console behavior, games and the complete CTest suite have not been run. This adds documented libc interfaces; no particular title starting successfully is claimed.
Checklist
main; no other open PR implements the same functions