feat(libSceNet): implement sceNetShowIfconfig and sceNetShowNetstat as silent stubs #5004
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5004"
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 YousefMohsen0 on 2026-10-13T07:50:28Z.
What
Implement
sceNetShowIfconfigandsceNetShowNetstatas silent stubs in libSceNet. These functions are imported by titles PPSA01530, PPSA13356, and PPSA11386 but have unknown signatures. They now return 0 instead of throwingNotImplemented_nid_no_patch, allowing the titles to load without crashing.Tested
guest_sce_net_tests,guest_ppsa01530_exports_tests,guest_datagram_receive_testsChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are documented (functions return 0 with local variable pattern).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-13T07:50:33Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T07:53:04Z.
Review: CHANGES_REQUESTED
Thanks for the PR. A few things to address before this can merge:
core/libs/prx/libSceNet/Export.cpp:474,1412: these now return 0 silently with unknown signatures. Silent no-ops are only accepted for UI/debug-output behaviour; if that's the argument (these print interface/socket state), say so in the PR and cite a source (KytyPS5/shadPS4/FreeBSD) for the return value. Drop the pointlessconst int resultand justreturn 0;.TechnicalDebt.mdline was added for either stub (silent stubs section, away from the end of the section).core/libs/tests/GuestPPSA01530Exports.cpp: the test only checkssceNetShowIfconfig() == 0andsceNetShowNetstathas no test at all. Please test both, and keep the table-driven structure for the remaining exports instead of rewriting it; also keep the trailing newline at EOF.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T07:53:49Z.
Progress report (
5f426f9→ aab7050)📈 System libraries: 88.36% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceNetShowIfconfigsceNetShowNetstat⚪ 2 behaviourally empty (constant return or throw)
sceNetShowIfconfigsceNetShowNetstatImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:04:11Z.
Review: CHANGES_REQUESTED
Thanks for the update. Remaining points:
docs/dev/debt/libSceNet.mdnow carries thesce::Json::Value::setNullAccessCallBackandscePadUnknown_n3kSX62fgNoentries. Debt goes in the file named after the firstcore/path it links, so those belong indocs/dev/debt/libSceJson2.mdanddocs/dev/debt/libScePad.md. Leave the libSceNet file with only the Net entries, and keep the trailing newline at EOF (the last line lost it).sceNetShowIfconfig/sceNetShowNetstatare(STUBBED) return ORBIS_OKwith no parameters or body, so they give neither a signature nor behaviour. FreeBSDifconfig/netstatare userland programs, not a libc call, so they don't say what the PS5 export returns. If the argument is "debug output only, so a silent no-op is fine", state that in the PR and in the debt line, and cite what shows they only print.Checked: build and ctest are green here and
guest_ppsa01530_exportsfails without the change, so the test is real.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:10:38Z.
Review: CHANGES_REQUESTED
Checked on this head merged onto main: build and the scoped ctest (29 tests, including
guest_ppsa01530_exports) are green, Conventions passes. Still open from the previous review:core/libs/prx/libSceNet/Export.cpp:474,1411: the0return is still unsourced. shadPS4's versions are(STUBBED) return ORBIS_OKwith no parameters or body, and FreeBSDifconfig/netstatare userland programs, not a libc call. If the argument is "they only print debug output, so a silent no-op is acceptable", say so in the PR and in the debt line, and cite what shows they only print. Otherwise they keep throwing.docs/dev/debt/libSceNet.md:10: thesce::Json::Value::setNullAccessCallBackandscePadUnknown_n3kSX62fgNoentries are still in the libSceNet file; they belong inlibSceJson2.mdandlibScePad.md. Keep only the Net entries here.Welcome to push again with these addressed.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:27:09Z.
Review: CHANGES_REQUESTED
Thanks for moving the debt entries; Conventions passes now. Still open from the previous review (no change to these in this head):
core/libs/prx/libSceNet/Export.cpp:474,1411: the0return is still unsourced. shadPS4's versions are(STUBBED) return ORBIS_OKwith no parameters or body, and FreeBSDifconfig/netstatare userland programs, not a libc call. The debt lines indocs/dev/debt/libSceNet.md:5-6now say they "print to stdout on FreeBSD", which is not a source for the PS5 export either. If the argument is "debug output only, so a silent no-op is acceptable", cite what shows these exports only print (a disassembly, SDK docs, another emulator with a body); otherwise they keep throwing.Welcome to push again with these addressed.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:31:22Z.
Review: CHANGES_REQUESTED
Thanks for the update. Remaining points:
docs/dev/debt/libSceNet.md: this head deletes the existingUnknown function infoentry for_sceUltWaitingQueueResourcePoolCreate, _sceUltSemaphoreCreate, _sceUltMutexOptParamInitialize, _sceUltMutexCreate, _sceUltQueueDataResourcePoolCreate and _sceUltQueueCreate(libSceUlt), which is onmain. Please restore it, and remove only thesceNetShowIfconfig/sceNetShowNetstatmentions. Keep the other lines you touched (sceNetResolverAbort...) unchanged and with the trailing newline at EOF.core/libs/prx/libSceNet/Export.cpp:474,1411: the0return is still unsourced. The shadPS4 link only shows(STUBBED) return ORBIS_OKwith no parameters or body, so it does not show that these exports only print debug output. Cite what does (a disassembly, SDK docs, another emulator with a body), or they keep throwing.Welcome to push again with these addressed.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T09:08:48Z.
Windows test of this PR.
Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
BUILD_TESTING=ON,-j2,libusb-cmakefrom a local checkout. Built frommainad653c9bcwith this PR and #5009 merged together; the merge had no conflict.Result: guest_ppsa01530_exports (1 of 1) passes.
Not checked: whether the test fails without the change in the library code; the PR was not tested alone, only in the combined merge; no title run; Linux not tested.
AI-assisted (Claude Code).
Pull request closed