feat(prx): declare the missing PS5 3.20 system exports in the next tier of libraries #8431
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8431"
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 juanpimg on 2026-10-20T12:37:21Z.
What
Declares 139 PS5 3.20 system exports that AnyPS5 does not provide and that #8747 does not declare, across 7 libraries:
libScePosixForWebKit(19),libSceRazorCpu(13),libSceSharePlay(16),libSceSsl(23),libSceSysUtil(23),libSceUsbd(21) andlibSceVrTracker(24).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_patchand returns 0; none of them implements the function. A declaration with a credible prototype uses it and cites the source with a pinned commit. The rest 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.libScePosixForWebKitexports two names that also exist in the host C library,gethostbyname_randsysinfo. Defining them would make the library's own call to::gethostbyname_rinResolver.cppbind to the new declaration, so their NIDs are exported through a renamed helper withAPS5_EXPORT, the waylibSceAmprre-exports the libc functions.Left out, and why:
libSceNpParty(25 exports),libSceNpTrophy2(23),libSceHttp2(18) andlibSceAppContent(17) — 83 exports total — are declared by #8747, so they are not declared here to avoid duplicating that pull request.libSceAudio3dandlibSceVoiceare declared by #8331.libSceVoiceChatalready provides its exports through theVOICECHAT_OFFLINE_REQUESTmacro, so a text scan does not see them and they are not declared again.tools/pr_overlap.pyreports no shared export with any open pull request, including #8747. It reports open pull requests that edit the same files without sharing an export; this change adds a separate bullet to those files, so a rebase resolves them.tools/progress.pyreports system libraries changing from 4309/6681 (64.5%) at base to 4309/6820 (63.18%) on this branch. Currentorigin/mainreports 4325/6874 (62.92%). These are pending declarations, so the implemented count is unchanged relative to base.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --parallel, no error.ctest --test-dir build --output-on-failure -j4: 1739 of 1739 pass.guest_sysmoduleandvideo_out_hdr_presentpass on this branch;guest_sysmodulestill logs "unknown id: 65535" insceSysmoduleIsLoadedas onorigin/main, andvideo_out_hdr_presentreports HDR output unavailable on this host, so neither is a regression. Thevideo_out_*tests that need a display are skipped.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-tier2: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, and every symbol was checked againstorigin/mainso that no NID is exported twice.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T12:38:12Z.
Progress report (
c82867c→a7b8c35)📉 System libraries: 61.5% (-1.24%, +139 declared functions)
🆕 139 declared as stubs
__wrap_access__wrap_clock_gettime__wrap_fchown__wrap_getcwd__wrap_getenv__wrap_link__wrap_lstat__wrap_mmap__wrap_readlink__wrap_statvfs__wrap_symlinkclock_gettime_npgetenv_npmmap_npmsetnamepthread_setschedparam_npscePosixForWebKit_gethostbyname_rscePosixForWebKit_sysinfosetenv_npsceRazorCpuFiberLogNameChangesceRazorCpuFiberSwitchsceRazorCpuGpuMarkerSyncsceRazorCpuInitializeGpuMarkerContextsceRazorCpuInitializeInternalsceRazorCpuSetPopMarkerCallbacksceRazorCpuSetPushMarkerCallbacksceRazorCpuSetPushMarkerStaticCallbacksceRazorCpuStartCaptureInternalsceRazorCpuStopCaptureInternalsceRazorCpuWorkloadRunBeginsceRazorCpuWorkloadRunEndsceRazorCpuWorkloadSubmitsceSharePlayCrashDaemonsceSharePlayGetCurrentConnectionInfosceSharePlayGetCurrentInfosceSharePlayGetEventsceSharePlayNotifyDialogOpensceSharePlayNotifyForceCloseForCdlgsceSharePlayResumeScreenForCdlgsceSharePlayServerLocksceSharePlayServerUnLocksceSharePlaySetModesceSharePlaySetProhibitionsceSharePlaySetProhibitionModeWithAppIdsceSharePlayStartStandbysceSharePlayStartStreamingsceSharePlayStopStandbysceSharePlayStopStreamingCA_MGMT_extractKeyBlobExCA_MGMT_extractPublicKeyInfoCA_MGMT_freeKeyBlobCRYPTO_initAsymmetricKeyCRYPTO_uninitAsymmetricKeyRSA_verifySignatureVLONG_freeVlongQueuesceSslCheckRecvPendingsceSslCreateSslConnectionsceSslDeleteSslConnectionsceSslDisableOptionsceSslDisableOptionInternalsceSslDisableOptionInternalInsecuresceSslEnableOptionsceSslEnableOptionInternalsceSslGetNanoSSLModuleIdsceSslGetPeerCertsceSslGetSslErrorsceSslLoadRootCACertsceSslRecvsceSslReuseConnectionsceSslSendsceSslSetSslVersionsceSysUtilSendAddressingSystemNotificationsceSysUtilSendAddressingSystemNotificationWithDeviceIdsceSysUtilSendAddressingSystemNotificationWithUserIdsceSysUtilSendAddressingSystemNotificationWithUserNamesceSysUtilSendNotificationRequestsceSysUtilSendNpDebugNotificationRequestsceSysUtilSendSystemNotificationsceSysUtilSendSystemNotification2sceSysUtilSendSystemNotificationParamInitsceSysUtilSendSystemNotificationWithAppIdsceSysUtilSendSystemNotificationWithAppInfosceSysUtilSendSystemNotificationWithAppNamesceSysUtilSendSystemNotificationWithAppNameRelatedToUsersceSysUtilSendSystemNotificationWithDeviceIdsceSysUtilSendSystemNotificationWithDeviceIdRelatedToUsersceSysUtilSendSystemNotificationWithErrorCodesceSysUtilSendSystemNotificationWithParamssceSysUtilSendSystemNotificationWithTextRelatedToUsersceSysUtilSendSystemNotificationWithUserIdsceSysUtilSendSystemNotificationWithUserNamesceSysUtilSendSystemNotificationWithUserNameInfosceSysUtilSendTrcCheckNotificationRequestsceSysUtilSendWebDebugNotificationRequestsceUsbdClearHaltsceUsbdDetachKernelDriversceUsbdEventHandlerActivesceUsbdGetConfigDescriptorByValuesceUsbdGetConfigurationsceUsbdGetDescriptorImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T12:45:29Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libScePosixForWebKit/Export.cppL2, L182docs/dev/debt/libSceSsl.mdL4-5docs/dev/debt/libSceVrTracker.mdL5core/libs/prx/libSceSsl/Export.cppL1171docs/dev/debt/libSceSysUtil.mddocs/dev/debt/libSceSysUtil.mddocs/dev/debt/libSceRazorCpu.mdL11-15docs/dev/debt/libSceSharePlay.mdL3-6docs/dev/debt/libSceSsl.mdL4-5docs/dev/debt/libSceVrTracker.mdL5Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceSsl.mdImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T13:34:54Z.
Checked that every new export throws through
NotImplemented_nid_no_patch, that prototypes are only given where a source is cited (SharpProspero, orbital, shadPS4), thatgethostbyname_randsysinfogo through renamed helpers withAPS5_EXPORTso the library's own host call is not interposed, that no alias repeats its own NID, and that the debt entries cover every added function. No shared exports with the other open PRs on these files; merged.