refactor(libs): name the libc and Json2 stubs the NID database resolves #1145
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1145"
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 reyani-dev on 2026-10-07T14:13:40Z.
What
tools/nid_names.pyresolves two unknown stubs that no open pull request touches. This renames them so the NIDs are unchanged and aNotImplementedfailure names the real function:u2tMGOLaqnElibcUnknown_u2tMGOLaqnE_ZSt14_Atomic_assertPKcS0_(std::_Atomic_assert(const char*, const char*))6i18OJSvFWksceJson2Unknown00_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm(sce::Json::InitParameterRtti::InitParameterRtti(AllocParamRtti*, void*, unsigned long))Both names were checked with
compute_nid(name) == nid. Behaviour is unchanged: both still callNotImplemented_nid_no_patch. They are not implemented here: theInitParameterRttilayout is unknown, and_Atomic_assertis a dead import of PPSA04029 (per the existing comment), so there is no call site to confirm its arguments.The other
rename-readylibc stubs (_Mtx_*,_Cnd_*,__powidf2,_WStoul,_Iswctype,vsnprintf_s,vsscanf_s) are left alone because #492 and #1128 already replace them.Tested
python tools/nid_names.pyno longer lists either NID. No local C++ toolchain on this machine, so the build is left to CI. No title tested.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T02:30:53Z.
Progress report (
3c05400→42b88bf)➖ System libraries: 86.13% (+0.0%, +2 declared, -2 removed functions)
🆕 2 declared as stubs
_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm_ZSt14_Atomic_assertPKcS0__nid_postfix🗑️ 2 removed
sceJson2Unknown00libcUnknown_u2tMGOLaqnEImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T08:16:18Z.
Checked both names with
compute_nid(_ZSt14_Atomic_assertPKcS0_→u2tMGOLaqnE,…InitParameterRttiC1EPNS0_14AllocParamRttiEPvm→6i18OJSvFWk), build + ctest (424/424) on top of currentmain, and linux/windows CI on the head; behaviour is unchanged. Merging.