feat(libSceNet): return success from ShowIfconfig and ShowNetstat #5928

Merged
Kurenaiiiii merged 3 commits from upstream-pr/5928 into main 2026-10-16 20:30:59 +00:00
Kurenaiiiii commented 2026-10-14 16:11:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kurenaiiiii on 2026-10-14T16:11:21Z.


What

sceNetShowIfconfig and sceNetShowNetstat return success instead of throwing. The () signatures and the success return follow shadPS4, which stubs both the same way. Recorded as silent stubs in the libSceNet debt file. This leaves no throwing stub in the library. Test asserts both returns in CheckNetstat.

Tested

Not run here (no full toolchain in this container). Export.cpp parses clean, conventions check passes. Left guest_sce_net to CI.

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
  • Unblocks: PPSA01530 #3177 (loader needs the ShowIfconfig export; PPSA11386 imports ShowNetstat)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4860818006 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5928). Originally posted by [Kurenaiiiii](https://github.com/Kurenaiiiii) on 2026-10-14T16:11:21Z. --- ### What sceNetShowIfconfig and sceNetShowNetstat return success instead of throwing. The () signatures and the success return follow shadPS4, which stubs both the same way. Recorded as silent stubs in the libSceNet debt file. This leaves no throwing stub in the library. Test asserts both returns in CheckNetstat. ### Tested Not run here (no full toolchain in this container). Export.cpp parses clean, conventions check passes. Left guest_sce_net to CI. ### 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 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] Unblocks: PPSA01530 #3177 (loader needs the ShowIfconfig export; PPSA11386 imports ShowNetstat) - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 16:12:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T16:12:00Z.


Progress report (c842491 → 8c6f08b)

📈 System libraries: 88.88% (+0.05%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceNet sceNetShowIfconfig
libSceNet sceNetShowNetstat
⚪ 2 behaviourally empty (constant return or throw)
Library Name
libSceNet sceNetShowIfconfig
libSceNet sceNetShowNetstat
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6172815834 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5928#issuecomment-6172815834). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T16:12:00Z. --- <!-- progress-report --> ### Progress report (c842491 → 8c6f08b) 📈 **System libraries**: 88.88% (+0.05%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowIfconfig` | | libSceNet | `sceNetShowNetstat` | </details> <details> <summary>⚪ 2 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowIfconfig` | | libSceNet | `sceNetShowNetstat` | </details>
github-actions[bot] commented 2026-10-14 16:31:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T16:31:08Z.


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
PR 5676 core/libs/tests/GuestPPSA01530Exports.cpp L8-9, L20-21
docs/dev/debt/libSceNet.md L5
PR 6281 docs/dev/debt/libScePad.md L11
PR 6286 docs/dev/debt/libSceNet.md L2, L7
PR 6600 docs/dev/debt/libScePad.md L11
PR 6603 docs/dev/debt/libSceNet.md L7
PR 6838 docs/dev/debt/libSceUlt.md L7

Some 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.

Pull request Shared files not compared
PR 5038 docs/dev/debt/libScePad.md
PR 6044 core/libs/tests/GuestPPSA01530Exports.cpp
core/libs/tests/GuestSceNet.cpp
PR 6447 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
docs/dev/debt/libScePad.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173190235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5928#issuecomment-6173190235). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T16:31:08Z. --- <!-- 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 | |---|---|---|---| | [PR 5676](https://www.github.com/boykopovar/AnyPS5/pull/5676) | `core/libs/tests/GuestPPSA01530Exports.cpp` [L8-9](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/core/libs/tests/GuestPPSA01530Exports.cpp#L8-L9), [L20-21](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/core/libs/tests/GuestPPSA01530Exports.cpp#L20-L21)<br>`docs/dev/debt/libSceNet.md` [L5](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libSceNet.md#L5) | | | | [PR 6281](https://www.github.com/boykopovar/AnyPS5/pull/6281) | `docs/dev/debt/libScePad.md` [L11](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libScePad.md#L11) | | | | [PR 6286](https://www.github.com/boykopovar/AnyPS5/pull/6286) | `docs/dev/debt/libSceNet.md` [L2](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libSceNet.md#L2), [L7](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libSceNet.md#L7) | | | | [PR 6600](https://www.github.com/boykopovar/AnyPS5/pull/6600) | `docs/dev/debt/libScePad.md` [L11](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libScePad.md#L11) | | | | [PR 6603](https://www.github.com/boykopovar/AnyPS5/pull/6603) | `docs/dev/debt/libSceNet.md` [L7](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libSceNet.md#L7) | | | | [PR 6838](https://www.github.com/boykopovar/AnyPS5/pull/6838) | `docs/dev/debt/libSceUlt.md` [L7](https://github.com/boykopovar/AnyPS5/blob/6fd4de2666dad794dcf1ba71fc366705b6e921cf/docs/dev/debt/libSceUlt.md#L7) | | | Some 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. | Pull request | Shared files not compared | |---|---| | [PR 5038](https://www.github.com/boykopovar/AnyPS5/pull/5038) | `docs/dev/debt/libScePad.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestPPSA01530Exports.cpp`<br>`core/libs/tests/GuestSceNet.cpp` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md`<br>`docs/dev/debt/libScePad.md` |
jotitadev commented 2026-10-15 18:15:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T18:15:34Z.

Review: COMMENTED


Linux run: guest_sce_net passes, but the PR breaks the existing guest_ppsa01530_exports test.

Machine: Ubuntu 26.04, Intel i7-8700, GCC 15.2, Release, full build (-DBUILD_TESTING=ON), non-GPU tests. Head fca8c3c5e merged onto main 03c4cb5e7 (clean merge).

  • guest_sce_net passes with the PR. With only the test applied (Export.cpp from main) it aborts with sceNetShowNetstat not implemented, so the new assertions cover the change.
  • Full non-GPU suite: 3 failures out of 670. file_writer_binary and file_writer_text also fail on plain main on this machine. The new one is guest_ppsa01530_exports:
    sceNetShowIfconfig returned instead of reporting that it is not implemented
    
    core/libs/tests/GuestPPSA01530Exports.cpp asserts that sceNetShowIfconfig still throws not implemented. It passes on main. The PR has to drop sceNetShowIfconfig from that test's exports[] table (and its declaration), keeping scePadUnknown_n3kSX62fgNo. The full CI did not run on this PR (linux is skipped), so it has not caught this yet.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5537875167 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5928#pullrequestreview-5537875167). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T18:15:34Z. **Review:** COMMENTED --- **Linux run: `guest_sce_net` passes, but the PR breaks the existing `guest_ppsa01530_exports` test.** Machine: Ubuntu 26.04, Intel i7-8700, GCC 15.2, Release, full build (`-DBUILD_TESTING=ON`), non-GPU tests. Head `fca8c3c5e` merged onto main `03c4cb5e7` (clean merge). - `guest_sce_net` passes with the PR. With only the test applied (Export.cpp from main) it aborts with `sceNetShowNetstat not implemented`, so the new assertions cover the change. - Full non-GPU suite: 3 failures out of 670. `file_writer_binary` and `file_writer_text` also fail on plain main on this machine. The new one is `guest_ppsa01530_exports`: ``` sceNetShowIfconfig returned instead of reporting that it is not implemented ``` `core/libs/tests/GuestPPSA01530Exports.cpp` asserts that `sceNetShowIfconfig` still throws `not implemented`. It passes on main. The PR has to drop `sceNetShowIfconfig` from that test's `exports[]` table (and its declaration), keeping `scePadUnknown_n3kSX62fgNo`. The full CI did not run on this PR (`linux` is skipped), so it has not caught this yet. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
adriadam10 commented 2026-10-16 18:55:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T18:55:40Z.


Checked on a local Linux build merged onto current main: guest_sce_net passes, and the only failure was guest_ppsa01530_exports (found by @jotitadev as well), which still asserted that sceNetShowIfconfig throws.

Added on top of your branch:

  • core/libs/tests/GuestPPSA01530Exports.cpp: dropped sceNetShowIfconfig from the not-implemented table and its declaration, keeping scePadUnknown_n3kSX62fgNo.

Scoped ctest (37 tests) is green after that; merging once the full build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222564884 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5928#issuecomment-6222564884). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T18:55:40Z. --- Checked on a local Linux build merged onto current main: `guest_sce_net` passes, and the only failure was `guest_ppsa01530_exports` (found by @jotitadev as well), which still asserted that `sceNetShowIfconfig` throws. Added on top of your branch: - `core/libs/tests/GuestPPSA01530Exports.cpp`: dropped `sceNetShowIfconfig` from the not-implemented table and its declaration, keeping `scePadUnknown_n3kSX62fgNo`. Scoped ctest (37 tests) is green after that; merging once the full build is green.
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!5928
No description provided.