refactor(prx): name the LibcInternal Err.cpp pending stubs the NID database resolves #15989
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15989"
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:43:21Z.
What
Names 78 of the 149
sceLibcInternalPending3_*_nid_no_patchplaceholders inlibSceLibcInternal/Err.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/ErrExports.hpp, which the library umbrella header includes.The other 71 are left as they are, because #15582, #15711, #15712, #15715 and #15830 implement or edit them or the stubs next to them; renaming them here would conflict with those PRs. 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,
main1e24993fa3. No title or homebrew run.compute_nid(name) == nidfor all 78.nm -Don the patchedlibSceLibcInternal.prxofmainand this branch, ignoring the removed_nid_no_patchhelper names: identical NID sets (1167); the placeholder helpers drop from 901 to 823.ctest -R 'public_headers|patched_librar': 66 of 66 passed.tools/check_conventions.py --base origin/main: passed.tools/pr_overlap.py --branch: 1895 open pull requests probed, no shared lines or exports inErr.cpp. #13486 and #13782 already conflict withmain, so the tool could not comparelibSceLibcInternal.hpp. Test-merging each intomainand into this branch withgit merge-treegives the same conflicting files, and the include sits where it also merges cleanly with #15678 and #15777.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:02Z.
Review: COMMENTED
Windows run of head
fe854e0ac4, 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 #15992 both edit
libSceLibcInternal.hpp. They merged together cleanly here.