feat(prx): declare the missing PS5 3.20 system exports in a third batch #8472

Merged
juanpimg merged 5 commits from upstream-pr/8472 into main 2026-10-24 12:49:41 +00:00
juanpimg commented 2026-10-20 13:14:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-20T13:14:07Z.


What

Declares 196 PS5 3.20 system exports that AnyPS5 does not provide, across 4 libraries.

AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs.

Every declaration calls NotImplemented_nid_no_patch and returns 0; none of them implements the function. The signatures are unknown for all of them, so they are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.

The list is the intersection of the export table of the console's library (function symbols only), the pinned aerolib names and the functions not yet defined anywhere in the repo. Every name recomputes to its NID with tools/nid_names.py.

These are the exports that open pull request #8747 does not declare: 17 in libSceBgft, 32 in libSceNpUniversalDataSystem, 76 in libSceNpUtility and 71 in libSceSysCore. The 55 exports that #8747 declares were removed from this change, so the two pull requests no longer implement the same functions.

libSceNpUniversalDataSystem has no Export.cpp here, so its declarations go in a new core/libs/prx/libSceNpUniversalDataSystem/PendingExports.cpp, the way libSceNgs2 was added in #8106.

tools/pr_overlap.py reports no shared export with any open pull request: its Same exports column for #8747 is empty. It reports #6977 as touching core/libs/prx/libSceNpUtility/Export.cpp without being able to compare it, and the fifteen exports it declares there were removed from this change.

tools/progress.py reports system libraries at 4609/11143 (41.36%) on this branch, against 4609/10947 (42.1%) on current origin/main. The branch is based on the current origin/main and declares 196 exports, which is the difference between the two denominators. The branch is based on the current origin/main and declares 196 exports, which is the difference between the two denominators. These are pending declarations, so the implemented count is unchanged by this branch.

Tested

CachyOS Linux, kernel 7.2.11-1-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.

  • Full build: cmake --build build --parallel, no error.
  • ctest --test-dir build --output-on-failure -j4: 1808 of 1813 pass. agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations fail identically on origin/main, so they are pre-existing failures. The net_dontwait_blocking* tests are timing sensitive and fail intermittently under the parallel full-suite run; they pass in isolation on this branch and on origin/main alike. guest_sysmodule fails intermittently and fails identically on origin/main when it does.
  • python3 tools/check_conventions.py --base origin/main: all conventions checks passed.
  • python3 tools/check_test_registration.py build: 1142 test executables, none unregistered.
  • python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports-tier3: no shared export with any open pull request.
  • Every declared symbol's NID was checked with the project's own tools/nid_names.py against the inventory, every symbol was checked against origin/main so that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls.
  • No title was run: the contributor has no PS5 and no game dumps.

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
  • 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:4936280600 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8472). Originally posted by [juanpimg](https://github.com/juanpimg) on 2026-10-20T13:14:07Z. --- ### What Declares 196 PS5 3.20 system exports that AnyPS5 does not provide, across 4 libraries. AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs. Every declaration calls `NotImplemented_nid_no_patch` and returns 0; none of them implements the function. The signatures are unknown for all of them, so they are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. The list is the intersection of the export table of the console's library (function symbols only), the pinned [aerolib](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) names and the functions not yet defined anywhere in the repo. Every name recomputes to its NID with `tools/nid_names.py`. These are the exports that open pull request #8747 does not declare: 17 in `libSceBgft`, 32 in `libSceNpUniversalDataSystem`, 76 in `libSceNpUtility` and 71 in `libSceSysCore`. The 55 exports that #8747 declares were removed from this change, so the two pull requests no longer implement the same functions. `libSceNpUniversalDataSystem` has no `Export.cpp` here, so its declarations go in a new `core/libs/prx/libSceNpUniversalDataSystem/PendingExports.cpp`, the way `libSceNgs2` was added in #8106. `tools/pr_overlap.py` reports no shared export with any open pull request: its Same exports column for #8747 is empty. It reports #6977 as touching `core/libs/prx/libSceNpUtility/Export.cpp` without being able to compare it, and the fifteen exports it declares there were removed from this change. `tools/progress.py` reports system libraries at 4609/11143 (41.36%) on this branch, against 4609/10947 (42.1%) on current `origin/main`. The branch is based on the current `origin/main` and declares 196 exports, which is the difference between the two denominators. The branch is based on the current `origin/main` and declares 196 exports, which is the difference between the two denominators. These are pending declarations, so the implemented count is unchanged by this branch. ### Tested CachyOS Linux, kernel 7.2.11-1-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build. - Full build: `cmake --build build --parallel`, no error. - `ctest --test-dir build --output-on-failure -j4`: 1808 of 1813 pass. `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations` fail identically on `origin/main`, so they are pre-existing failures. The `net_dontwait_blocking*` tests are timing sensitive and fail intermittently under the parallel full-suite run; they pass in isolation on this branch and on `origin/main` alike. `guest_sysmodule` fails intermittently and fails identically on `origin/main` when it does. - `python3 tools/check_conventions.py --base origin/main`: all conventions checks passed. - `python3 tools/check_test_registration.py build`: 1142 test executables, none unregistered. - `python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports-tier3`: no shared export with any open pull request. - Every declared symbol's NID was checked with the project's own `tools/nid_names.py` against the inventory, every symbol was checked against `origin/main` so that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls. - No title was run: the contributor has no PS5 and no game dumps. ### 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 - [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
oneandonlydean commented 2026-10-21 03:05:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T03:05:12Z.


@juanpimg FYI: #8747 has been closed. Of the 55 exports this PR dropped for it, #8818 re-declares 44. The other 11 (sceNpUniversalDataSystemInt*: AbortHandle, CheckNetSyncTitles, CreateContext, CreateHandle, DeleteAllData, DeleteUserDataWithServerData, DestroyContext, DestroyHandle, Initialize, NetSyncTitles, Terminate) are not in any open pull request now, in case you want to add them back here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6306998698 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8472#issuecomment-6306998698). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T03:05:12Z. --- @juanpimg FYI: #8747 has been closed. Of the 55 exports this PR dropped for it, #8818 re-declares 44. The other 11 (`sceNpUniversalDataSystemInt*`: AbortHandle, CheckNetSyncTitles, CreateContext, CreateHandle, DeleteAllData, DeleteUserDataWithServerData, DestroyContext, DestroyHandle, Initialize, NetSyncTitles, Terminate) are not in any open pull request now, in case you want to add them back here.
juanpimg commented 2026-10-21 08:41:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-21T08:41:55Z.


Thanks for the heads-up, that was useful.

The 11 sceNpUniversalDataSystemInt* exports turned out to be in main by the time I
read your comment, so there was nothing left to add back. The same happened with the
exports of libSceAppContent, libSceHttp2, libSceNpParty and libSceNpTrophy2: they
are all provided now, through #8818 and the other pull requests that followed #8747 being
closed.

#8747 and #8818 having been closed and reopened in smaller pieces is the right shape. What
is left of my two pull requests is the part that no open pull request declares:

  • #8431: 139 exports in 7 libraries (libScePosixForWebKit, libSceRazorCpu,
    libSceSharePlay, libSceSsl, libSceSysUtil, libSceUsbd, libSceVrTracker)
  • #8472: 196 exports in 4 libraries (libSceBgft, libSceNpUniversalDataSystem,
    libSceNpUtility, libSceSysCore)

tools/pr_overlap.py reports no shared export with any open pull request for either one,
and both were trimmed down from what they were, so the set as a whole covers each export
once.

For the next pull request in this family: tools/export_gap.py computes the list. It
intersects the console's export table with the pinned aerolib names and the exports the
repository does not define yet, and it recognises what a library already provides
through an APS5_VABI declaration, a _nid_postfix name, an APS5_EXPORT binding or a
macro, so an export that is already there does not get declared twice. It also reports the
missing exports whose name the library calls itself, because declaring one of those
interposes on the library's own call.

python3 tools/export_gap.py --module libSceSysCore --export-table <dir> --db <aerolib.csv>

It is in #8588, which is the pull request of this series with a build on all four
platforms.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6311809065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8472#issuecomment-6311809065). Originally posted by [juanpimg](https://github.com/juanpimg) on 2026-10-21T08:41:55Z. --- Thanks for the heads-up, that was useful. The 11 `sceNpUniversalDataSystemInt*` exports turned out to be in `main` by the time I read your comment, so there was nothing left to add back. The same happened with the exports of `libSceAppContent`, `libSceHttp2`, `libSceNpParty` and `libSceNpTrophy2`: they are all provided now, through #8818 and the other pull requests that followed #8747 being closed. #8747 and #8818 having been closed and reopened in smaller pieces is the right shape. What is left of my two pull requests is the part that no open pull request declares: - #8431: 139 exports in 7 libraries (`libScePosixForWebKit`, `libSceRazorCpu`, `libSceSharePlay`, `libSceSsl`, `libSceSysUtil`, `libSceUsbd`, `libSceVrTracker`) - #8472: 196 exports in 4 libraries (`libSceBgft`, `libSceNpUniversalDataSystem`, `libSceNpUtility`, `libSceSysCore`) `tools/pr_overlap.py` reports no shared export with any open pull request for either one, and both were trimmed down from what they were, so the set as a whole covers each export once. For the next pull request in this family: `tools/export_gap.py` computes the list. It intersects the console's export table with the pinned aerolib names and the exports the repository does not define yet, and it recognises what a library already provides through an `APS5_VABI` declaration, a `_nid_postfix` name, an `APS5_EXPORT` binding or a macro, so an export that is already there does not get declared twice. It also reports the missing exports whose name the library calls itself, because declaring one of those interposes on the library's own call. ```sh python3 tools/export_gap.py --module libSceSysCore --export-table <dir> --db <aerolib.csv> ``` It is in #8588, which is the pull request of this series with a build on all four platforms.
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!8472
No description provided.