feat(libSceLibcInternal): declare 150 additional PS5 exports #9532

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

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


What

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

The updated independent exact-NID audit recomputed all selected NIDs 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 629 unique libSceLibcInternal candidates before this selection; the selected 150 are distinct from #9498, #9511, and #9528. One unavailable patch concerns an unrelated AGC shader-resource file. The live overlap scan reported no duplicate exports or concrete conflicts. Its comparison of Export.cpp and the debt file in #5021 was unavailable because that PR conflicts with its base; I manually reviewed the fetched diff: its fminf/heap-trace edits and statvfs debt note are separate from this PR's declarations and debt section. 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 --head HEAD — passed
  • git diff --check — passed
  • Independent exact-NID audit — all 150 selected names recomputed to their inventory NIDs and were absent from current main and open PR exports
  • python -I tools/pr_overlap.py --branch feat/ps5-libcinternal-150-round4 --repo boykopovar/AnyPS5 --jobs 8 — no duplicate exports or concrete conflicts; #5021 required the manual 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:4960206138 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T00:28:11Z. --- ### What Adds 150 pending `libSceLibcInternal` imports from the PS5 3.20 export inventory. Each declaration calls `NotImplemented_nid_no_patch`; prototypes and behavior are unverified, so the declarations support import resolution only and make no ABI claim. The technical-debt file records every added mangled export name and NID. The updated independent exact-NID audit recomputed all selected NIDs 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 629 unique `libSceLibcInternal` candidates before this selection; the selected 150 are distinct from #9498, #9511, and #9528. One unavailable patch concerns an unrelated AGC shader-resource file. The live overlap scan reported no duplicate exports or concrete conflicts. Its comparison of `Export.cpp` and the debt file in #5021 was unavailable because that PR conflicts with its base; I manually reviewed the fetched diff: its `fminf`/heap-trace edits and statvfs debt note are separate from this PR's declarations and debt section. 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 --head HEAD` — passed - `git diff --check` — passed - Independent exact-NID audit — all 150 selected names recomputed to their inventory NIDs and were absent from current `main` and open PR exports - `python -I tools/pr_overlap.py --branch feat/ps5-libcinternal-150-round4 --repo boykopovar/AnyPS5 --jobs 8` — no duplicate exports or concrete conflicts; #5021 required the manual 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:31:36 +00:00 (Migrated from github.com)

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

Review: APPROVED


I independently audited the 150 Pending4 exports: indexes and mangled names are unique, all recomputed NIDs match the debt entries, and none duplicate exports in current main or #9498, #9511, or #9528. The wrappers use the required _nid_no_patch path. Author-reported Windows/WSL builds and overlap checks are noted; hosted eligibility, conventions, intake, labels and report pass, while product/relinker jobs are skipped. I did not run a local build or tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607874847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532#pullrequestreview-5607874847). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:31:36Z. **Review:** APPROVED --- I independently audited the 150 `Pending4` exports: indexes and mangled names are unique, all recomputed NIDs match the debt entries, and none duplicate exports in current `main` or #9498, #9511, or #9528. The wrappers use the required `_nid_no_patch` path. Author-reported Windows/WSL builds and overlap checks are noted; hosted eligibility, conventions, intake, labels and report pass, while product/relinker jobs are skipped. I did not run a local build or tests.
xdCloudy commented 2026-10-22 01:32:08 +00:00 (Migrated from github.com)

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


Relevant: GitHub could not compare #5021 because its branch conflicts with base. I’ll manually review the shared Export.cpp and libc technical-debt changes and update this PR if they need coordination. This warning does not by itself report a duplicate export.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330501651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532#issuecomment-6330501651). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T01:32:08Z. --- Relevant: GitHub could not compare #5021 because its branch conflicts with base. I’ll manually review the shared Export.cpp and libc technical-debt changes and update this PR if they need coordination. This warning does not by itself report 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 paths. In Export.cpp, #5021 removes the existing sceLibcHeapGetTraceInfo_nid_postfix wrapper; this PR adds the sceLibcInternalPending4_* declarations in the export inventory block. I found no repeated export/NID between those changes. In the debt file, #5021 documents statvfs, while this PR adds pending import entries; these describe different functions. Both patches touch the file, so the debt additions may need a small placement reconciliation when applied together, but I found no duplicate declaration.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331188079 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532#issuecomment-6331188079). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T02:25:58Z. --- Manual review complete for #5021’s shared paths. In Export.cpp, #5021 removes the existing sceLibcHeapGetTraceInfo_nid_postfix wrapper; this PR adds the sceLibcInternalPending4_* declarations in the export inventory block. I found no repeated export/NID between those changes. In the debt file, #5021 documents statvfs, while this PR adds pending import entries; these describe different functions. Both patches touch the file, so the debt additions may need a small placement reconciliation when applied together, but I found no duplicate declaration.
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: after checking the exact debt-file hunks, #5021’s statvfs functional entry and this PR’s added-import section are separate insertion points. No placement reconciliation is needed for those entries. The export edits also touch separate declarations. #5021 is currently marked DIRTY against its base, so its own rebase is still needed before the combined landing can be confirmed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331291605 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532#issuecomment-6331291605). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T02:34:23Z. --- Correction to my prior note: after checking the exact debt-file hunks, #5021’s statvfs functional entry and this PR’s added-import section are separate insertion points. No placement reconciliation is needed for those entries. The export edits also touch separate declarations. #5021 is currently marked DIRTY against its base, so its own rebase is still needed before the combined landing can be confirmed.
MarcZX10 commented 2026-10-22 11:37:24 +00:00 (Migrated from github.com)

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


I refreshed the checks on current head 02f560faa5: conventions and diff-check pass, and the branch merges cleanly with current main. The earlier independent NID/export audit and your Windows/WSL target builds remain useful evidence. The branch is 1 ahead / 11 behind current main (merge base d6eafa54d); please refresh it and rerun the target build, NID audit, conventions and overlap scan before merge so the declared inventory is checked against the actual current base and open-PR set.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339791609 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9532#issuecomment-6339791609). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T11:37:24Z. --- I refreshed the checks on current head `02f560faa5`: conventions and diff-check pass, and the branch merges cleanly with current `main`. The earlier independent NID/export audit and your Windows/WSL target builds remain useful evidence. The branch is 1 ahead / 11 behind current `main` (merge base `d6eafa54d`); please refresh it and rerun the target build, NID audit, conventions and overlap scan before merge so the declared inventory is checked against the actual current base and open-PR set.

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