refactor(prx): name the LibcInternal Export.cpp pending stubs the NID database resolves #15992
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15992"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-05T06:58:48Z.
What
Names 41 of the 149
sceLibcInternalPending4_*_nid_no_patchplaceholders inlibSceLibcInternal/Export.cppafter the symbolstools/nid_names.pyresolves through its pinned aerolib database, the same names the libSceLibcInternal debt file already lists for them. As in #15678 and #15777, the names carry the_nid_postfixsuffix so they never collide with the host C++ runtime, and they are declared once in the newinclude/PendingExports.hpp, which the library umbrella header includes.The other 108 are left as they are, because #5021, #13486, #13782, #14373, #15582, #15665, #15692, #15715, #16005, #16024 and #17628 implement or edit them or the stubs next to them; renaming them here would conflict with those PRs. That includes the 9
time_getandbad_alloc::_Doraisemembers #16005 and #16024 implement and 9 stubs bordering their hunks, which earlier revisions of this PR named, and the 19money_getandmoney_putmembers #17628 implements. They can be named once those land.Every renamed body still throws through
NotImplemented_nid_no_patch, and the library exports the same NIDs as onmain. A title that reaches one now fails with the function's name instead of the placeholder's. The debt entries already name each export, so they are unchanged.Tested
Ubuntu 26.04.1 on WSL2, GCC 15.2.0, Release,
main8e34d2642d, headac407d092f. No title or homebrew run.compute_nid(name) == nidfor all 41.nm -Don the patchedlibSceLibcInternal.prxofmainand this branch: identical NID sets (1168); the placeholder helpers drop from 690 to 649.ctest -R 'public_headers|patched_librar': 66 of 66 passed.tools/check_conventions.py --base origin/main: passed.tools/pr_overlap.py --branch: 1974 open pull requests probed; it no longer reports #17628. Earlier it reported only #16005 and #16024;git merge-treeof this branch with each of them, and with #15989, is now clean. #5021, #15581 and #17300 already conflict withmain, so the tool could not compare them; #17300 renames none of the 41.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T21:44:03Z.
Review: COMMENTED
Windows run of head
800d573985, merged ontomain095ff72367in one tree with other open PRs that touch different files (each PR's test is its own file, so they don't interact). Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release,BUILD_TESTING=ON.libSceLibcInternalbuilds._nid_postfixname withtools/nid_names.py'scompute_nid. All 78 give exactly the 78 NIDs whoseAPS5_EXPORTlines this PR removes, with none missing and none extra.This PR and #15989 both edit
libSceLibcInternal.hpp. They merged together cleanly here.