feat(libSceLibcInternal): declare 150 more PS5 pending exports #9528

Closed
xdCloudy wants to merge 0 commits from upstream-pr/9528 into main
xdCloudy commented 2026-10-22 00:15:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T00:15:25Z.


What

Adds 150 pending libSceLibcInternal imports from the PS5 3.20 export inventory. Each declaration calls NotImplemented_nid_no_patch; the signatures and behavior are unverified, so the entries support import resolution only and make no ABI claim. The technical-debt file lists each mangled export name and NID.

The updated independent exact-NID audit recomputed every selected NID and checked current upstream main plus available export additions from all 1,129 open PRs. It included literal 11-character NIDs, APS5_EXPORT symbol names, and assembly/function exports; it found zero collisions for this batch. There were 779 unique libSceLibcInternal candidates before this selection; the selected 150 are distinct from #9498 and #9511. One unavailable patch concerns an unrelated AGC shader-resource file. The post-creation tools/pr_overlap.py scan reported no duplicate exports or concrete conflicts. It could not compare the shared debt file in #5021 because that PR conflicts with its base. I reviewed the current #5021 patch: it adds a statvfs implementation note in the functional debt section; this PR adds pending import declarations in a separate section. They document different entries, and no dependency is required.

Tested

  • Windows: libSceLibcInternal compiled and linked successfully
  • Ubuntu under WSL: libSceLibcInternal compiled and linked successfully
  • python -I tools/check_conventions.py --base upstream/main — passed
  • git diff --check — passed
  • Independent exact-NID audit — 150 selected NIDs recomputed; zero collisions with current main or the 1,129-open-PR export audit, including raw NID literals and assembly/function exports
  • python -I tools/pr_overlap.py --branch feat/ps5-libcinternal-150-round3 --repo boykopovar/AnyPS5 --jobs 8 — no duplicate exports or concrete conflicts; #5021 required the manual debt-file review described above
  • GitHub checks on the current PR head: conventions, eligibility, intake, labels, and report passed. Linux, Windows, relinker, relinker-asan, register-context, and write-watch jobs were skipped; no hosted product build is claimed

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 under Silent stubs in their library's technical debt file
  • 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 (not applicable)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4960104997 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T00:15:25Z. --- ### What Adds 150 pending `libSceLibcInternal` imports from the PS5 3.20 export inventory. Each declaration calls `NotImplemented_nid_no_patch`; the signatures and behavior are unverified, so the entries support import resolution only and make no ABI claim. The technical-debt file lists each mangled export name and NID. The updated independent exact-NID audit recomputed every selected NID and checked current upstream `main` plus available export additions from all 1,129 open PRs. It included literal 11-character NIDs, `APS5_EXPORT` symbol names, and assembly/function exports; it found zero collisions for this batch. There were 779 unique `libSceLibcInternal` candidates before this selection; the selected 150 are distinct from #9498 and #9511. One unavailable patch concerns an unrelated AGC shader-resource file. The post-creation `tools/pr_overlap.py` scan reported no duplicate exports or concrete conflicts. It could not compare the shared debt file in #5021 because that PR conflicts with its base. I reviewed the current #5021 patch: it adds a `statvfs` implementation note in the functional debt section; this PR adds pending import declarations in a separate section. They document different entries, and no dependency is required. ### Tested - Windows: `libSceLibcInternal` compiled and linked successfully - Ubuntu under WSL: `libSceLibcInternal` compiled and linked successfully - `python -I tools/check_conventions.py --base upstream/main` — passed - `git diff --check` — passed - Independent exact-NID audit — 150 selected NIDs recomputed; zero collisions with current `main` or the 1,129-open-PR export audit, including raw NID literals and assembly/function exports - `python -I tools/pr_overlap.py --branch feat/ps5-libcinternal-150-round3 --repo boykopovar/AnyPS5 --jobs 8` — no duplicate exports or concrete conflicts; #5021 required the manual debt-file review described above - GitHub checks on the current PR head: conventions, eligibility, intake, labels, and report passed. Linux, Windows, relinker, relinker-asan, register-context, and write-watch jobs were skipped; no hosted product build is claimed <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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 (not applicable) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 00:24:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T00:24:41Z.

Review: APPROVED


I independently audited the 150 new Pending3 exports: all indexes and mangled names are unique, all 150 recomputed NIDs match the debt entries, and none duplicate an export in current main or #9511. The wrappers follow the required _nid_no_patch pattern. The reported Windows and WSL target builds and convention/overlap checks are author-reported; on GitHub, eligibility, conventions, intake, labels, and report pass, while product and relinker jobs are skipped. I did not run a local build or test suite.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607833706 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528#pullrequestreview-5607833706). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:24:41Z. **Review:** APPROVED --- I independently audited the 150 new `Pending3` exports: all indexes and mangled names are unique, all 150 recomputed NIDs match the debt entries, and none duplicate an export in current `main` or #9511. The wrappers follow the required `_nid_no_patch` pattern. The reported Windows and WSL target builds and convention/overlap checks are author-reported; on GitHub, eligibility, conventions, intake, labels, and report pass, while product and relinker jobs are skipped. I did not run a local build or test suite.
xdCloudy commented 2026-10-22 01:32:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T01:32:33Z.


Relevant: GitHub could not compare #5021 because its branch conflicts with base. I’ll manually review the shared libc technical-debt changes and update this PR if coordination is needed. The warning does not itself identify a duplicate export.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330507185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528#issuecomment-6330507185). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T01:32:33Z. --- Relevant: GitHub could not compare #5021 because its branch conflicts with base. I’ll manually review the shared libc technical-debt changes and update this PR if coordination is needed. The warning does not itself identify a duplicate export.
xdCloudy commented 2026-10-22 02:25:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T02:25:58Z.


Manual review complete for #5021’s shared debt file. #5021 adds the functional statvfs note; this PR adds libc pending-import debt entries. They document different functions and I found no duplicate declaration. The shared file may need a placement reconciliation when both patches are applied, but there is no export-level overlap indicated by this comparison.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331188083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528#issuecomment-6331188083). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T02:25:58Z. --- Manual review complete for #5021’s shared debt file. #5021 adds the functional statvfs note; this PR adds libc pending-import debt entries. They document different functions and I found no duplicate declaration. The shared file may need a placement reconciliation when both patches are applied, but there is no export-level overlap indicated by this comparison.
xdCloudy commented 2026-10-22 02:34:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T02:34:23Z.


Correction to my prior note: the exact hunks place #5021’s statvfs note in the functional section and this PR’s imports under the added-import heading. They do not need placement reconciliation. I corrected the stale inet_ntoa_r description in this PR body. #5021 itself remains DIRTY against its base; that PR needs its own rebase before a combined landing can be confirmed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331291607 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528#issuecomment-6331291607). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T02:34:23Z. --- Correction to my prior note: the exact hunks place #5021’s statvfs note in the functional section and this PR’s imports under the added-import heading. They do not need placement reconciliation. I corrected the stale inet_ntoa_r description in this PR body. #5021 itself remains DIRTY against its base; that PR needs its own rebase before a combined landing can be confirmed.
MarcZX10 commented 2026-10-22 11:38:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:38:33Z.


I compared this batch with #9532: the 150 Pending3 and 150 Pending4 declarations are in separate implementation files, and the debt-file insertions merge cleanly together with no pairwise conflict. Your current head also merges cleanly with today’s main; diff-check and conventions pass. The branch is 1 ahead / 119 behind current main (merge base a6dcea927), so please refresh and rerun the target build, exact-NID audit, conventions and live overlap scan before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339812683 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9528#issuecomment-6339812683). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T11:38:33Z. --- I compared this batch with #9532: the 150 `Pending3` and 150 `Pending4` declarations are in separate implementation files, and the debt-file insertions merge cleanly together with no pairwise conflict. Your current head also merges cleanly with today’s `main`; diff-check and conventions pass. The branch is 1 ahead / 119 behind current `main` (merge base `a6dcea927`), so please refresh and rerun the target build, exact-NID audit, conventions and live overlap scan before merge.

Pull request closed

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!9528
No description provided.