refactor(libs): name the libc and Json2 stubs the NID database resolves #1145

Merged
reyani-dev merged 1 commit from upstream-pr/1145 into main 2026-10-08 08:16:21 +00:00
reyani-dev commented 2026-10-07 14:13:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-07T14:13:40Z.


What

tools/nid_names.py resolves two unknown stubs that no open pull request touches. This renames them so the NIDs are unchanged and a NotImplemented failure names the real function:

Library NID Old New
libc u2tMGOLaqnE libcUnknown_u2tMGOLaqnE _ZSt14_Atomic_assertPKcS0_ (std::_Atomic_assert(const char*, const char*))
libSceJson2 6i18OJSvFWk sceJson2Unknown00 _ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm (sce::Json::InitParameterRtti::InitParameterRtti(AllocParamRtti*, void*, unsigned long))

Both names were checked with compute_nid(name) == nid. Behaviour is unchanged: both still call NotImplemented_nid_no_patch. They are not implemented here: the InitParameterRtti layout is unknown, and _Atomic_assert is a dead import of PPSA04029 (per the existing comment), so there is no call site to confirm its arguments.

The other rename-ready libc 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.py no longer lists either NID. No local C++ toolchain on this machine, so the build is left to CI. No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4773923544 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1145). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-07T14:13:40Z. --- ### What `tools/nid_names.py` resolves two unknown stubs that no open pull request touches. This renames them so the NIDs are unchanged and a `NotImplemented` failure names the real function: | Library | NID | Old | New | |---|---|---|---| | libc | `u2tMGOLaqnE` | `libcUnknown_u2tMGOLaqnE` | `_ZSt14_Atomic_assertPKcS0_` (`std::_Atomic_assert(const char*, const char*)`) | | libSceJson2 | `6i18OJSvFWk` | `sceJson2Unknown00` | `_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm` (`sce::Json::InitParameterRtti::InitParameterRtti(AllocParamRtti*, void*, unsigned long)`) | Both names were checked with `compute_nid(name) == nid`. Behaviour is unchanged: both still call `NotImplemented_nid_no_patch`. They are not implemented here: the `InitParameterRtti` layout is unknown, and `_Atomic_assert` is a dead import of PPSA04029 (per the existing comment), so there is no call site to confirm its arguments. The other `rename-ready` libc 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.py` no longer lists either NID. No local C++ toolchain on this machine, so the build is left to CI. No title tested. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-08 02:30:53 +00:00 (Migrated from github.com)

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
Library Name
libSceJson2 _ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm
libc _ZSt14_Atomic_assertPKcS0__nid_postfix
🗑️ 2 removed
Library Name
libSceJson2 sceJson2Unknown00
libc libcUnknown_u2tMGOLaqnE
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6050958185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1145#issuecomment-6050958185). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T02:30:53Z. --- <!-- progress-report --> ### Progress report (3c05400 → 42b88bf) ➖ **System libraries**: 86.13% (+0.0%, +2 declared, -2 removed functions) <details> <summary>🆕 2 declared as stubs</summary> | Library | Name | | - | - | | libSceJson2 | `_ZN3sce4Json17InitParameterRttiC1EPNS0_14AllocParamRttiEPvm` | | libc | `_ZSt14_Atomic_assertPKcS0__nid_postfix` | </details> <details> <summary>🗑️ 2 removed</summary> | Library | Name | | - | - | | libSceJson2 | `sceJson2Unknown00` | | libc | `libcUnknown_u2tMGOLaqnE` | </details>
adriadam10 commented 2026-10-08 08:16:18 +00:00 (Migrated from github.com)

Imported 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 current main, and linux/windows CI on the head; behaviour is unchanged. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6055718637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1145#issuecomment-6055718637). Originally posted by [adriadam10](https://github.com/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 current `main`, and linux/windows CI on the head; behaviour is unchanged. Merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1145
No description provided.