Repository navigation
Conversation
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
Provide missing libc export __std_calloc_crt (NID 1a7K+jO+ST0) through the existing guest calloc implementation. The signature and forwarding contract follow Microsoft STL; the name/NID occur in the public PS5 ps5rs inventory. The source-derived alias is an inference rather than a PS5 measurement; record unverified native allocator routing and error behavior in libc debt. This does not claim that a title is unblocked.
Tested
Windows x86-64, WinLibs GCC 15.2.0 POSIX/DWARF, Release full CMake configuration. Built application_heap_tests and patched libc.prx. CTest -R ^application_heap_ --output-on-failure -j1 --timeout25: 9/9 passed, 0 failures, 0.32 seconds, including replacement, invalid_metadata, default, exit_order, scripting, lazy and three stats modes. Tests exercise zeroed storage, 64-bit multiplication overflow, zero dimensions, existing guest deallocation/reallocation and callback allocation failure. Public-header audit and conventions passed. Patched output exports the expected NID. No game, PS5 module or console run; actual native allocator-domain/error equivalence remains unverified.
Sources: https://github.com/microsoft/STL/blob/b6f01e438b68ee497f9c08313e49d12bb2f0d8e0/stl/src/tzdb.cpp#L647-L649 and https://github.com/claimore22/ps5rs/blob/5f252a658ff470bcb2b6cd15205fd8ca64ae4477/data/stubs/by_library/libc.txt
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Overlap review: the full tool examined 1,364 open PRs. No duplicate function/export was found. Thirty-seven stale PR comparisons required manual review; PR boykopovar#11848 appends unrelated freezero tests at the same ApplicationHeap.cpp insertion point, so a textual merge resolution may be needed. There is no demonstrated functional dependency. Full log and manual diff review are retained locally; do not describe every stale PR as merge-clean.