feat(prx): declare exports for 66 inventory-covered system libraries #7907
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7907"
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 akkadbakkad89 on 2026-10-19T13:11:18Z.
What
Completes the
bec9cf2e5inventory coverage for every remaining skeleton whose export table is verifiable: declares the exported function names for 67 confirmed PS5 system libraries, replacing eachAPS5_DUMMY_FUNplaceholder withNotImplemented_nid_no_patchstubs — 1,499 exports total, plusdocs/dev/debtnotes for 5 more libraries whose entire tables overlap already-declared siblings.Unlike #7835/#7840 (prefix-matched from the flat aerolib table, then aligned during review), every declaration here is taken directly from the per-module PS5 3.20 export inventory — the same source
1b5004d77cites — so each list is dump-verified, not prefix-derived. Every prototype is declared()since no signature is verified; each library gets adocs/dev/debt/<library>.mdentry in the1b5004d77shape.Largest libraries:
libSceFsInternalForVsh(176),libSceFios2(168),libmdbg_syscore(143),libSceAvSetting(104),libSceComposite(78),libSceDataTransfer(60),libSceVisionManager(56),libScePlayReady(50),libSceSpSysCallWrapper(48),libSceVideoCoreServerInterface(47).Duplicate-export resolution (the rule keeps each symbol in one library; the sibling declaration still resolves all module variants at import time):
libSceSulphaDrv— all 8sceSulpha*exports are declared by #7416 inlibSceSulpha; stays a skeleton, debt file records the attributionlibSceNpSns— 3sceNpSnsFacebook*exports declared by #6977 inlibSceNpSnsFacebookDialog; the other 21 exports are declared herelibSceCompositeExt(all 78 shared withlibSceComposite),libSceVideoStreamingEngine_sys(12/12),libSceVdecSavc2.native(4/4) andlibSceVdecShevc.native(7/7) stay skeletons with debt notes;libScePlayReady2(16 kept, 39 shared withlibScePlayReady),libScePlayReady4(35 kept),libSceVdecCore.native(4 kept) declare only their unique namesDeliberately excluded (with reasons, in case reviewers disagree):
sce*exports —_ZN*-mangled C++ symbols (e.g.libSceXml,libSceAbstractStorage,libSceIpmi) or bundled third-party surfaces (libSceLibreSsl*:SSL_*/EVP_*;libSceFreeTypeO*:FT_*;libSceIcu:u_*;libSceGLSlimVSH:egl*/gl*;libSceNKWebKitRequirements:sqlite3*/wpe*/xml*/jpeg*). Mangled names technically export as literal C identifiers, and third-party surfaces could be stubbed the same way — but both raise a policy question (fake-ABI concern vs the3rdparty/rule) that deserves an explicit maintainer decision rather than a silent bulk declare.main—libkernel_web(267/1090 names already in the tree),libSceAgcVsh(189/196),libSceJson(39/88),libSceVideoRecording.native(17/18),libSceAjm(14/22),libSceAjmi(14/21),libSceVideoRecording,libSceShare.native,libSceKbEmulate(fully covered). Each needs per-name resolution of where the canonical declaration belongs.libSceWebKit2*,libSceDeci5*,libSceHand*,libSceHeadTracker) — nothing public to verify their tables against.libSceJsc,libSceNKWebKit— present in the inventory but with 0-byte export tables.Tested
Windows 11 worktree; configured and built under WSL gcc (Release).
.prxvia the existingprx/*glob;nm -Dcounts match the inventory exactly (spot-verified:libSceFsInternalForVsh176/176,libSceFios2168/168,libmdbg_syscore143/143,libSceVdecCore.native24/24,libSceVdecCore20/20).core/libs/prx/directory — not onmain, not within this PR's own set (verified bycheck_conventions's duplicate-export gate) (set-intersection over allAPS5_VABIexports).python3 tools/check_conventions.py --base origin/main: clean;tools/pr_overlap.pyflagged the two symbol overlaps above (#6977, #7416); both resolved by omitting the names here and recording the attribution in the debt files.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)NotImplementedtraps instead of missing-module failures.prxbuilds verified, no GPU path exercised)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T13:12:10Z.
Progress report (
275e896→f57ef99)📉 System libraries: 42.95% (-5.97%, +1284 declared functions)
🆕 1284 declared as stubs
sceAc3EncCreateEncodersceAc3EncDeleteEncodersceAc3EncEncodesceAc3EncEncodeAsyncsceAc3EncFlushsceAc3EncIsEncodingsceAc3EncWaitEncodesceAudioSystemSystemResumesceAudioSystemSystemSuspendsceBackupRestoreUtilBackupDatasceBackupRestoreUtilCancelBackupDatasceBackupRestoreUtilCancelGetRequiredSizesceBackupRestoreUtilCancelGetTitlessceBackupRestoreUtilCancelRestoreDatasceBackupRestoreUtilDeleteBackupDatasceBackupRestoreUtilGetBackupDataInfosceBackupRestoreUtilGetBackupParamsceBackupRestoreUtilGetBackupProgresssceBackupRestoreUtilGetRequiredSizesceBackupRestoreUtilGetRestoreProgresssceBackupRestoreUtilGetTitlessceBackupRestoreUtilInitializesceBackupRestoreUtilPrepareBackupsceBackupRestoreUtilRestoreDatasceBackupRestoreUtilTerminatesceCompositorAllocateIndexsceCompositorCheckCrashsceCompositorCommandGpuPerfBeginsceCompositorCommandGpuPerfEndsceCompositorCreateIndirectRenderTargetsceCompositorDeleteIndirectRenderTargetsceCompositorFlushsceCompositorFlushWithRepeatsceCompositorGetAnotherProcessSystemAddresssceCompositorGetAnotherProcessSystemSizesceCompositorGetAnotherProcessVideoAddresssceCompositorGetAnotherProcessVideoSizesceCompositorGetCanvasHandlesceCompositorGetClientListsceCompositorGetDmemOffsetsceCompositorGetDummyAddresssceCompositorGetDummySizesceCompositorGetRemainedCommandNumsceCompositorGetRenderTargetResolutionsceCompositorGetSystemAddresssceCompositorGetSystemSizesceCompositorGetVideoAddresssceCompositorGetVideoSizesceCompositorHandleProcessEventssceCompositorInitsceCompositorInitWithProcessOrdersceCompositorInsertThreadTraceMarkersceCompositorIsDebugCaptureEnabledsceCompositorIsReady4KsceCompositorLockCommandBuffersceCompositorMakeCanvasHandlesceCompositorMapAnotherProcesssceCompositorMemoryPoolDecommitsceCompositorPrivacyMaskPushAreasceCompositorQuitsceCompositorReleaseCommandBuffersceCompositorReleaseIndexsceCompositorReleaseLocalStallsceCompositorReserveCommandBuffersceCompositorResetZoomCommandsceCompositorSetAgcCompositeCanvasCommandsceCompositorSetAgcContextCommandsceCompositorSetCompositeCanvasCommandInCsceCompositorSetCursorImageAddresssceCompositorSetDebugPositionCommandsceCompositorSetEndOfFrameCommandsceCompositorSetEventCommandsceCompositorSetFilterTypesceCompositorSetFlipCommand2sceCompositorSetGameSufaceControlCommandsceCompositorSetGnmContextCommandsceCompositorSetIndirectCanvasCommandsceCompositorSetIndirectCompositionCommandsceCompositorSetIndirectRenderTargetConfigCommandsceCompositorSetInvisibleCanvasCommandsceCompositorSetKeepDisplayBufferCommandsceCompositorSetLocalStallCommandsceCompositorSetMemoryCommandsceCompositorSetPatchCommandsceCompositorSetPostEventCommandsceCompositorSetRepeatCommandsceCompositorSetResolutionCommandsceCompositorSetScalingLayoutInfosceCompositorSetSeparateContextCommandsceCompositorSetSystemConfigWithMasksceCompositorSetVideoOutModesceCompositorSetVirtualCanvasAgcContextCommandsceCompositorSetVirtualCanvasCommandFootersceCompositorSetVirtualCanvasPatchCommandsceCompositorSetVrModesceCompositorSetZoomCommandsceCompositorSystemConfigsceCompositorWaitEndOfRenderingsceCompositorWaitEventsceCompositorWaitPostEventImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T10:35:07Z.
Review: CHANGES_REQUESTED
The declarations follow the same pattern as #7835/#7840 (
NotImplemented_nid_no_patch,()prototypes, "Unknown function info" debt entries). The blocker is overlap with two other open PRs:libSceRnpsAppMgr,libSceShareUtility,libSceSystemLogger2,libSceVdecCoreandlibSceVenc(the sameExport.cppanddocs/dev/debt/*.mdfiles). Whichever lands second fails the duplicate-export gate. Please agree with its author which PR keeps these five libraries and drop them from the other.core/libs/prx/libSceAvSetting/Export.cpp,docs/dev/debt/libSceAvSetting.mdanddocs/dev/debt/libSceHidControl.md. Either leave those libraries out of this PR or rebase on top of #8332 and list it under Depends on (currentlynone).Once those are resolved and the PR body lists the dependencies, this is ready for the merge queue's full Build.
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T10:47:22Z.
Both overlaps resolved in f138edfc — I dropped the seven contested libraries rather than split ownership:
libSceRnpsAppMgr,libSceShareUtility,libSceSystemLogger2,libSceVdecCore,libSceVenc: removed from this PR, #9010 keeps them (its declarations are the same generated NI pattern, so nothing is lost either way). Left a note there.libSceAvSetting,libSceHidControl: removed; #8332's versions are real implementations with proper debt entries, strictly better than generated declarations.65 libraries / 1,441 declarations remain, all now exclusive to this PR.
check_conventionsclean (only the pre-existing generated debt-length warnings),mergeable: true. If #9010 doesn't land I can re-add the five in a follow-up.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T12:02:37Z.
Both overlaps are gone: the contested libraries were dropped, and no other open PR touches these
Export.cppordocs/dev/debt/*.mdfiles now. The declarations follow #7835/#7840 (NotImplemented_nid_no_patch,()prototypes, debt entry per library), no duplicate exports; merged.