feat(syslib): implement 22 functions, raise coverage to 86.84% #4064

Closed
ZekriDev1 wants to merge 16 commits from upstream-pr/4064 into main
ZekriDev1 commented 2026-10-11 22:33:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ZekriDev1 on 2026-10-11T22:33:18Z.


What

Implements 22 system-library functions on top of current main, raising coverage from 2973/3449 (86.20%) to 2995/3449 (86.84%) with no denominator change. Includes the sceKernelGetEventError fix (FreeBSD EV_ERROR semantics). Every function follows an already-accepted in-repo model with a focused test:

  • libkernel (1): event-error via EV_ERROR flag, null-checked like siblings
  • libSceNpEntitlementAccess (2), libSceNpSessionSignaling (4): offline SIGNED_OUT/UNAVAILABLE errors, like same-file siblings
  • libSceGameUpdate (1), libSceNpManager (2): null/id validation mirroring identical-signature siblings
  • libSceShare.native (4) + libSceShare (1): accepted no-capture model (+test/CMakeLists for native)
  • libSceIme (1), libSceNet (1, synchronous-resolver abort no-op), libSceSystemGesture (3), libSceAudioOut (1), libSceNpWebApi2 (1)

Rebased onto current main; yielded SigninDialog, Http epoll work, and 4 entitlement queries to upstream implementations. NpAuth (3) and NpPartner001 (2) removed in favor of open #3604 and #3718; rebase planned after they merge. Supersedes #4046, which could not be reopened after the rebase force-push.

Unverified on console and disclosed: gesture/share codes (in-repo precedent only), abort/accept semantics.

Tested

  • python3 tools/check_conventions.py --base 43bc17f7ed --head HEAD -> pass
  • python3 -m unittest discover -s tools/tests -> 174 tests OK (2 skipped)
  • python3 tools/progress.py -> 2995/3449 (86.84%), +22, no regressions; shaders 1166/1166
  • Full cmake build, ctest, guest tests: not run - no toolchain (no cmake/compiler, submodules uninitialized). Requires a configured runner before merge.

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822894986 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4064). Originally posted by [ZekriDev1](https://github.com/ZekriDev1) on 2026-10-11T22:33:18Z. --- ### What Implements 22 system-library functions on top of current main, raising coverage from 2973/3449 (86.20%) to 2995/3449 (86.84%) with no denominator change. Includes the sceKernelGetEventError fix (FreeBSD EV_ERROR semantics). Every function follows an already-accepted in-repo model with a focused test: - libkernel (1): event-error via EV_ERROR flag, null-checked like siblings - libSceNpEntitlementAccess (2), libSceNpSessionSignaling (4): offline SIGNED_OUT/UNAVAILABLE errors, like same-file siblings - libSceGameUpdate (1), libSceNpManager (2): null/id validation mirroring identical-signature siblings - libSceShare.native (4) + libSceShare (1): accepted no-capture model (+test/CMakeLists for native) - libSceIme (1), libSceNet (1, synchronous-resolver abort no-op), libSceSystemGesture (3), libSceAudioOut (1), libSceNpWebApi2 (1) Rebased onto current main; yielded SigninDialog, Http epoll work, and 4 entitlement queries to upstream implementations. NpAuth (3) and NpPartner001 (2) removed in favor of open #3604 and #3718; rebase planned after they merge. Supersedes #4046, which could not be reopened after the rebase force-push. Unverified on console and disclosed: gesture/share codes (in-repo precedent only), abort/accept semantics. ### Tested - python3 tools/check_conventions.py --base 43bc17f7edfc32c38428fd8e4e6d8cc94c8cb31b --head HEAD -> pass - python3 -m unittest discover -s tools/tests -> 174 tests OK (2 skipped) - python3 tools/progress.py -> 2995/3449 (86.84%), +22, no regressions; shaders 1166/1166 - Full cmake build, ctest, guest tests: not run - no toolchain (no cmake/compiler, submodules uninitialized). Requires a configured runner before merge. ### Checklist - [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 - [x] Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt - [x] No notes, investigation .md files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 22:45:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T22:45:02Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#4065 core/libs/prx/libSceNet/Export.cpp L1303-1304
#4107 core/libs/prx/libSceShare/Export.cpp L107-110
#4179 core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp L13, L62, L70
#4188 core/libs/tests/GuestNpWebApi2.cpp L17
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114738935 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4064#issuecomment-6114738935). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T22:45:02Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4065 | `core/libs/prx/libSceNet/Export.cpp` [L1303-1304](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceNet/Export.cpp#L1303-L1304) | | | | #4107 | `core/libs/prx/libSceShare/Export.cpp` [L107-110](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceShare/Export.cpp#L107-L110) | | | | #4179 | `core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp` [L13](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L13), [L62](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L62), [L70](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L70) | | | | #4188 | `core/libs/tests/GuestNpWebApi2.cpp` [L17](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/tests/GuestNpWebApi2.cpp#L17) | | |
sktharunbalaji13-cmd commented 2026-10-12 05:42:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by sktharunbalaji13-cmd on 2026-10-12T05:42:04Z.


One question about sceNpSetContentRestriction: this currently returns success for both null and non-null restrictions, but the restriction is opaque (std::uint8_t opaque[128]) and doesn't appear to be stored or enforced anywhere in the library. Since the libSceNpManager model reports the user as signed out when PSN isn't emulated, could unconditional success mislead a guest into believing the restriction was applied?

The neighboring NP APIs generally validate null pointers and return an NP error when the service is unavailable — sceNpGetAccountAge and sceNpGetNpId both check their pointer and then return SCE_NP_ERROR_SIGNED_OUT.

I don't have console measurements for this function, so I'm raising this as a consistency and guest-visible-behavior concern rather than claiming the exact return code is known. Would it make sense to document the no-op behavior explicitly, or to use the existing signed-out error convention?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118472150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4064#issuecomment-6118472150). Originally posted by [sktharunbalaji13-cmd](https://github.com/sktharunbalaji13-cmd) on 2026-10-12T05:42:04Z. --- One question about `sceNpSetContentRestriction`: this currently returns success for both null and non-null restrictions, but the restriction is opaque (`std::uint8_t opaque[128]`) and doesn't appear to be stored or enforced anywhere in the library. Since the libSceNpManager model reports the user as signed out when PSN isn't emulated, could unconditional success mislead a guest into believing the restriction was applied? The neighboring NP APIs generally validate null pointers and return an NP error when the service is unavailable — `sceNpGetAccountAge` and `sceNpGetNpId` both check their pointer and then return `SCE_NP_ERROR_SIGNED_OUT`. I don't have console measurements for this function, so I'm raising this as a consistency and guest-visible-behavior concern rather than claiming the exact return code is known. Would it make sense to document the no-op behavior explicitly, or to use the existing signed-out error convention?
oneandonlydean commented 2026-10-12 08:29:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:29:48Z.


Closing: this removes the throw from 22 exports in 12 libraries to raise the progress figure, none of them is tied to a title, and by the description it was never built or run. Please reopen one library at a time, built and tested, with the title that stops at the function on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120601370 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4064#issuecomment-6120601370). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T08:29:48Z. --- Closing: this removes the throw from 22 exports in 12 libraries to raise the progress figure, none of them is tied to a title, and by the description it was never built or run. Please reopen one library at a time, built and tested, with the title that stops at the function on main.

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