Repository navigation
feat(libSceNetCtl): declare sceNetCtlGetInfoV6 - #7612
Conversation
|
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.
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.
|
|
Windows run, since the description lists Windows as not run. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, The build is clean, and AI-assisted |
|
Ran this on macOS, since it was not run there: Apple M1, macOS 26.6.2 (25G83), x86-64 build under Rosetta 2, AppleClang 21. Merged into the macOS host branch of #7332 (
AI-assisted: yes (Claude Code). I ran the build and tests on my machine. |
libSceNetCtl exports sceNetCtlGetStateV6, sceNetCtlRegisterCallbackV6 and sceNetCtlUnregisterCallbackV6 but not sceNetCtlGetInfoV6 (NID Jy1EO5GdlcM). Dragon Ball Xenoverse 2 (PPSA08587) imports it, and an import that no system library exports stops a title before its entry point: on Linux ld.so refuses the relinked executable with "undefined symbol: Jy1EO5GdlcM", and on Windows the entry stub prints "FAIL: unresolved ELF import Jy1EO5GdlcM from libSceNetCtl.prx" and raises 0xC0000139. The title's tester reports that it does not call the function before its loading screen. It is a Sony network-control call with no FreeBSD counterpart, and neither its parameters nor the IPv6 info layout are known, so it is declared without parameters and throws through NotImplemented_nid_no_patch, as CONTRIBUTING.md asks of exports that cannot be implemented. The gap is recorded in docs/dev/debt/libSceNetCtl.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e56cbef to
d8baccc
Compare
|
Checked the declaration against the aerolib NID, the throwing-stub convention and the debt entry (Unknown function info); Windows and macOS builds confirmed by @LeandroLP23 and @ycarogabriel-lgtm; merged. |
What
libSceNetCtl exports
sceNetCtlGetStateV6,sceNetCtlRegisterCallbackV6andsceNetCtlUnregisterCallbackV6, but notsceNetCtlGetInfoV6(NIDJy1EO5GdlcM), so a title that imports it does not start. On Linux the relinked executable carries the import as an undefined global function and hasDF_BIND_NOW(LinuxElfPatcher.cpp), and ld.so stops withsymbol lookup error: undefined symbol: Jy1EO5GdlcM(exit 127) before the libraries' start-up code runs. On Windows the entry stub printsFAIL: unresolved ELF import Jy1EO5GdlcM from libSceNetCtl.prx(WindowsEntryStubBuilder.cpp), lists the searched libraries and raises0xC0000139before the ELF entry point (L720-L731); the Windows path is from the code, not from a run.Dragon Ball Xenoverse 2 (PPSA08587) imports it: its tester, LuisAguilarDev, lists
sceNetCtlGetInfoV6in #6591 among the importsmainlacks ("Imported but missing; not called yet"), and with them declared locally the title reaches its logos and loading screen. The thread does not quote theFAILline. Onmainthe title stops earlier, atFailed to load module: libSceNpTus.prx(#6592): the Windows entry stub loads the modules a title imports from before it resolves any import, and raises0xC0000135when one does not load (L526-L549), so theFAILline forJy1EO5GdlcMcan only show once #6592 is in. The same list namessceNpSessionSignalingGetGroupInfo, which #7125 has since declared for PPSA31327. The name hashes toJy1EO5GdlcM(tools/nid_names.py --name), and the aerolib list thattools/nid_names.pyreads mapsJy1EO5GdlcMtosceNetCtlGetInfoV6.It is a Sony network-control call with no FreeBSD counterpart, and neither its parameters nor the layout of the IPv6 information it returns are established in the repository or its technical debt. So it is declared without parameters and throws through
NotImplemented_nid_no_patch(General.cpp), as CONTRIBUTING.md asks of exports that cannot be implemented and as #7125 did for the PPSA31327 imports. It is recorded under Unknown function info indocs/dev/debt/libSceNetCtl.md.Where this still falls short:
sceNetCtlGetInfoV6 not implementedinstead of answering. The tester reports that the title does not call it before its loading screen.scePthreadAttrGetschedpolicyandscePthreadAttrGetinheritsched, whichmaindoes not export either; feat(libkernel): implement scePthreadAttrGetschedpolicy and scePthreadAttrGetinheritsched #7611 adds them. With this PR and feat(libkernel): implement scePthreadAttrGetschedpolicy and scePthreadAttrGetinheritsched #7611, every library and import the thread lists as missing is provided. With feat(np-tus): add libSceNpTus with offline title user storage #6592 and these exports applied locally, the tester reports the next stop in AGC (stencil clear requires a writable stencil plane).Tested
Gentoo Linux, kernel 7.2.8, GCC 16.2.1, glibc 2.43, Release,
BUILD_TESTING=ON.Rebased onto
main97d5d7a on 2026-10-19. #6720, merged since, rewrote thesceNetCtlGetInfoentry just below the new debt line. The rebase keeps #6720's text and puts the new entry above it; the code change is the same. On that base:libSceNetCtl.prxexportsJy1EO5GdlcM(nm -D).tools/select_tests.pyselects for the change pass.Export.cppcompiles withx86_64-w64-mingw32-g++(-fsyntax-only -Wall -Wextra) without warnings. The unusedargwarnings mentioned below are gone, sincemainnow keeps the callback argument.tools/check_conventions.pypasses.tools/pr_overlap.py --branchfinds no overlap with another pull request. As before, it could not compare docs: fix Pages workflow link and separate library technical debt #6039 and Macos port #7201, which conflict withmain.The results below are from the original base,
main889cee5.libSceNetCtl.prxexportsJy1EO5GdlcM(nm -D); built frommainit does not.core/relinker/relinker/tests/guest_import_fixtures.py), whose entry callssceNetCtlInitand which also importsJy1EO5GdlcMfrom libSceNetCtl without calling it, relinked for Linux by the built relinker with default options (unused-filter=0;readelfshowsBIND_NOWand both NIDs as undefined global functions). With onlyExport.cppreverted tomain, it stops withsymbol lookup error: undefined symbol: Jy1EO5GdlcM, exit 127, without the host CPU line the libraries print at start-up. With the change,LD_DEBUG=bindingsshows both NIDs bound tolibSceNetCtl.prx, and under gdb the entry callssceNetCtlInitin the built library, which returns 0. The fixture's entry then returns, which a title's entry never does, and the process stops at theud2that follows the call in the relinked entry point (SIGILL), as a control executable that imports onlysceNetCtlInitdoes with and without the change.sceNetCtlGetInfoV6()throwsstd::runtime_errorwithsceNetCtlGetInfoV6 not implemented.guest_net_ctlandguest_sce_netpass, as do all 193 teststools/select_tests.pyselects for the change.ctest -j6 --timeout 300: 1452 tests, 0 failed, 13 skipped (the 11video_out_flip_*tests,video_out_frame_dump_queueandagc_driver_stencil_ref_export, which skip onmainon this machine too).Export.cppcompiles withx86_64-w64-mingw32-g++16.2 (-fsyntax-only -Wall -Wextra). Its only warnings are the unusedargparameters ofsceNetCtlRegisterCallbackandsceNetCtlRegisterCallbackV6, whichmainhas too. This is a syntax check, not a Windows build or run.tools/check_conventions.pypasses againstmain.tools/pr_overlap.py --branchreports one overlap: feat(netctl): implement remaining info codes in sceNetCtlGetInfo #6720 rewrites thesceNetCtlGetInfoentry indocs/dev/debt/libSceNetCtl.md, the line below the new entry (L8-9). It could not compare docs: fix Pages workflow link and separate library technical debt #6039 and Macos port #7201, which conflict withmain. Merged with this branch, each conflicts in the same files as when merged withmain: Macos port #7201 in none of the files of this change, and docs: fix Pages workflow link and separate library technical debt #6039 indocs/dev/debt/libSceNetCtl.md, at the one place where it already conflicts withmain. TheExport.cppchanges of fix(libSceNetCtl): keep the callback argument and deliver the state from sceNetCtlCheckCallback #6138, fix(libSceNetCtl): read the default route from the routing table on macOS #6685, feat(netctl): implement remaining info codes in sceNetCtlGetInfo #6720 and feat: macOS on Apple Silicon host support (Rosetta 2 and MoltenVK) #7332 merge with this branch without a conflict.Not run with PPSA08587. Not run on Windows, macOS or a console.
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)🤖 Generated with Claude Code