Repository navigation
feat(libSceNet): implement the Ex and Internal socket forms, sceNetSysctl, scope-ID text and the default route - #9578
Conversation
…ns to their public twins sceNetSocketInternal, sceNetGetsockoptEx and sceNetSetsockoptEx threw. Their argument lists, restored with the rest of the firmware exports in 4d6942f, are the same as sceNetSocket, sceNetGetsockopt and sceNetSetsockopt, so they now call those. Nothing in the tree records how the console tells the entry points apart (for example by the calling process); the debt file says so. Tested: guest_sce_net_tests creates a datagram socket through sceNetSocketInternal, sets SO_REUSEADDR and SO_RCVTIMEO through sceNetSetsockoptEx and reads them back through sceNetGetsockoptEx and sceNetGetsockopt with the same values. On a closed socket and on -1, and for an unsupported family and type, each Ex/Internal call returns the same error and errno as its public twin.
sceNetSysctl threw. Its restored argument list is FreeBSD's sysctl(3) (name, name length, old value and size, new value and size), so it now calls libkernel's sysctl. It answers exactly the MIBs libkernel models, and a failure is returned as the library's other calls return one (0x80410100 | errno, with the errno set). Tested: guest_sce_net_tests reads hw.pagesize (6.7) through both sysctl and sceNetSysctl and gets the same value and size, including a size-only query. A one-level name gives EINVAL, a null name EFAULT, a write EPERM and a one-byte buffer ENOMEM, each as 0x804101xx with the errno set.
sceNetInetNtopWithScopeId and sceNetInetPtonWithScopeId threw. They now handle AF_INET6 text with an RFC 4007 numeric zone (fe80::1%2): the address part goes through sceNetInetNtop and sceNetInetPton, so it follows the FreeBSD inet text rules, and the zone is printed and parsed as FreeBSD 11.4's getnameinfo (NI_NUMERICSCOPE) and getaddrinfo do. A zero scope ID prints the address alone and text without a zone parses to scope ID 0. An empty zone, one above 2^32 - 1, or an invalid address part returns 0 and leaves both outputs untouched; a buffer too small for the scoped text gives ENOSPC. A zone given as an interface name, and AF_INET, still throw: the tree has no mapping from interface names to the console's interface indexes and no answer for an IPv4 zone. The debt file says so. Tested: guest_sce_net_tests round-trips fe80::1%2 (same address bytes as fe80::1, scope ID 2) and ff02::1%4294967295, checks the exact buffer size and ENOSPC one byte short, the unscoped forms, four rejected texts with untouched outputs, EINVAL for null pointers, and that an interface-name zone and AF_INET throw.
…ultRoute sceNetConfigGetDefaultRoute threw. It now writes the IPv4 gateway of the host interface that libSceNetCtl's sceNetCtlGetInfo already describes as DEFAULT_ROUTE, in network byte order, the order sceNetInetPton writes an AF_INET address in, and returns 0. libSceNetCtl exports NetCtlHostIpv4Gateway_nid_no_patch for it, next to the DNS helper sceNetGetDnsInfo uses. Without a gateway, or for a null pointer, it still throws: the console's answer for a missing route is not measured. Tested: guest_sce_net_tests, after sceNetCtlInit, prints the gateway with sceNetInetNtop and compares it with sceNetCtlGetInfo's DEFAULT_ROUTE text (192.0.2.1 on this host); a null pointer throws. On a host without a default route the case checks that the call throws and leaves the output untouched.
Progress report (4569fe6 → 0a4d4e7)📈 System libraries: 26.35% (+0.02%, +7 implemented functions) ✅ 7 implemented
Changed libraries (implemented exports)
|
|
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.
|
|
I reviewed the current overlap report against the declared dependency branches. #9515 changes One additional overlap needs coordination: #9231 remains open and changes The no-gateway branch of |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed the eight-commit diff and the focused coverage. The Ex/Internal forms are explicit forwards with uncertainty recorded; sysctl is routed through the existing libkernel implementation and its error mapping is documented as unverified; scope IDs are deliberately numeric-only with unsupported interface-name/AF_INET paths left throwing; and the default-route helper writes only after finding a gateway, with its no-route and null behavior kept explicitly unimplemented. The tests include boundaries/rejections, focused red-green controls, repeats, and accurately disclose the missing no-gateway execution and IPv6 environment limitation. The checklist declares the stacked prerequisites #9494 and #9515 and correctly says no title unblock. Eligibility, conventions, intake, labels and report checks pass; product build jobs are skipped. The Linux/Windows comparisons in the description are author-reported; I did not run tests locally. No actionable issue found in this review.
|
Thanks, @MarcZX10. Gonic0 agreed on #9231 that neither PR waits for the other (comment): its macOS check of an IPv4 address's leading zeros runs before the host conversion, which this stack leaves IPv4 to, and the two merge cleanly with this PR and with #9494. The Overlap section and Depends on now say so, here and on #9494, where the |
There was a problem hiding this comment.
Follow-up to my earlier approval after refreshing upstream/main and rerunning the focused target on this exact head. The local guest_sce_net_tests target builds successfully from this PR head. CTest starts the test, but the process aborts in HostCpu before test assertions because this host lacks LZCNT, BMI1/2, MOVBE, AVX2 and FMA. The PR's Linux/Windows test matrix is reported as author-run on a merge of #9494 and #9515; current required eligibility, conventions, intake, labels and report checks pass, while product and relinker jobs are skipped by path policy. Please refresh the branch against current main and rerun the focused Linux/Windows checks before merge. check_main_sync.py reports 10 ahead / 116 behind (merge base 94fbb8cea), despite a clean merge. Since the PR's last checked base 6ef5a1c and that merge base, main changed libSceNet/Export.cpp, libSceNetCtl/Export.cpp, GuestSceNet.cpp and both debt files. In particular, GuestSceNet.cpp now has additional tests, and libSceNetCtl initialization changed; please verify the new cases and the default-route helper still behave as intended after rebasing. My prior review found no code defect on the then-current base. The focused Linux/Windows checks in the PR description are useful evidence; the remaining requests are for current-base validation only. I withdraw the queue-based hold; it is fine to keep submitting PRs and they will be handled in due course.
I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
|
I also withdraw the stale-base request. The current head |
|
I’ve noticed that asking you to hold this PR was unnecessary. It’s fine to keep submitting PRs; maintainers will handle them in due course. |
# Conflicts: # core/libs/prx/libSceNetCtl/Export.cpp
…puts throw The named zone "fe80::1%lo0", the two AF_INET scope conversions and sceNetConfigGetDefaultRoute with a valid output and no host gateway are valid but unimplemented forms; tests no longer pin them as throws. The malformed and null-pointer checks, the numeric IPv6 round trips and the success controls stay.
|
@oneandonlydean done in 930c1c0: the four assertions are gone ( |
# Conflicts: # core/libs/prx/libSceNet/Export.cpp
MarcZX10
left a comment
There was a problem hiding this comment.
Re-reviewed exact head e88598fd9e9e933fa281e54993bff47a0c7692b9 against current upstream/main 4c7d275bef89d309313d16bc2bc05d37a1b50be2. The PR’s previously raised test issue is resolved: the assertions that pinned valid-but-unimplemented scope/default-route forms to throwing were removed, and the remaining malformed-input, numeric IPv6, and success/no-write cases are retained. The author reports the focused Linux and Windows suites passing 10 runs on this exact head. I refreshed the head, verified git merge-tree --write-tree produces a clean current-main preview, and ran git diff --check and python3 tools/check_conventions.py --base upstream/main; all passed. I found no remaining blocking issue.
|
Static review plus an independent Linux run (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, What I checked (static)
Focused test run
Not an AGC/shader/VideoOut change — no paired Vulkan-validation run required. |
|
Thanks for the review and the Linux run, @blawesom. |
|
Thanks — the shape is right, but the module differs from this implementation on four points. I read the exports in
I have a candidate implementation of both exports that follows the module (host |
|
@rooklz thank you for reading the module. Your four points show this PR's scope-ID forms don't match the console: the zone is an interface name from the module's table, not a decimal index; Ntop prints that name; null Ntop arguments set I'd like to fold your behaviour in here, with the credit yours. If you point me to your branch or commit, I'll take it into this PR as your commit, under your name, with its tests and debt entry. If it needs adapting to this PR's tests, the adapted commit will carry you as co-author. Either way, |
|
Measured behaviour from the firmware libSceNet.sprx for this export (NID
I have a branch implementing exactly this chain (host gateway from the routing table, network byte order), but it overlaps this PR on the same lines, so I am holding it until this one lands or is updated with the measured chain. |
|
@rooklz thank you, that's the chain this PR's |
|
Reviewed at The firmware measurement posted above for
Could the function follow the measured chain (not-initialized check, 1 on success, |
|
@oneandonlydean yes. As in my reply to rooklz just above, |
rooklz read sceNetInetNtopWithScopeId (FUN_00006be0) and sceNetInetPtonWithScopeId (FUN_000072d0) in libSceNet.sprx. The zone after '%' is one of the ten interface names, never a number, and ntop prints the name of the interface whose index is the scope. A null address or text and a short buffer set ENOSPC, and another family sets EAFNOSUPPORT. Pton reads a zone only when the scope output is not null, and answers another family with EAFNOSUPPORT and a null text with EINVAL. The host has none of these interfaces. Names and indexes go through the interface table and host-index mapping of rooklz's "feat(net): resolve interface ids to host indexes", taken with the same text so the two changes merge without conflict there. A null destination throws std::invalid_argument, where the module faults. Co-authored-by: rooklz <175737347+rooklz@users.noreply.github.com>
rooklz read sceNetConfigGetDefaultRoute (NID lFJb+BlPK1c, wrapper at 0x153f0) in libSceNet.sprx. Before sceNetInit it returns 0x804101C8 with errno 200. Without a default route it returns 0x8041130C and leaves the output alone. With one it stores the route and returns 1, not 0. The wrapper never checks the output pointer. The not-initialized answer reads the library's sceNetInit/sceNetTerm flag through fail(), as the other exports do. The route is still the host gateway. A null output with a route throws std::invalid_argument, where the module faults. Co-authored-by: rooklz <175737347+rooklz@users.noreply.github.com>
|
@rooklz @oneandonlydean the measured behaviour is in, as 81bc358 (the scope-ID forms) and 0a4d4e7 (
What's left of the null case comes from the wrapper's missing null check, not the old line 431 pin. A null output only matters once there's a route, and there the module faults. In that case it throws The scope-ID forms, on rooklz's four points:
A name maps to a host interface through #14213's interface table and helpers, taken with the same text, so a merge of the two keeps one copy of each. Thanks for the EINVAL suggestion for pton's null destination. I kept On GitHub's runners (run), |
|
Post-merge re-check of the null-gateway case, reading the same wrapper again (NID `lFJb+BlPK1c`, 0x153f0) plus the shared getter it calls at 0xc70: the user pointer is never passed to the getter — the wrapper stores to `[rdi]` itself after the getter returns 1, with no null check anywhere on the path. So null output + route present faults in the module, and null output + no route returns `0x8041130C` before the store. That matches what landed in 0a4d4e7 (route-miss first, then the `std::invalid_argument` throw), and the null+no-route ordering is right too. Correction to my 2026-11-01 note: the `0x8041130E` I listed for a null gateway is not produced by this wrapper/getter pair (it does not appear in either function); treat that value as unsubstantiated for this export. The merged implementation stands. |
What
This implements 7 libSceNet functions that threw. 4 more from the same batch stay throwing, because their answer would be a guess.
0x80410100 | errno, like the library's other calls.libSceNet.sprx(comment).lo0,eth0,eth1,dbg0,gbe0,bt0,wlan0,wlan1,phone0,pppoe0). Ntop prints%<name>, and a decimal zone such asfe80::1%2doesn't convert.%branch runs only with a scope output.ENOSPC. Another family givesEAFNOSUPPORT: null from ntop,0x8041012Ffrom pton.std::invalid_argument, where the module faults.0x804101C8with errno 200.0x8041130Cwith the output untouched.std::invalid_argument, where the module faults.Still throwing:
81bc358 (the scope-ID forms) and 0a4d4e7 (the default route) replace the earlier numeric zones and throws with the module's answers, after rooklz's reading and oneandonlydean's review. Both commits carry rooklz's Co-authored-by line. The debt entries list what isn't measured:
#9494 and #9515, which this was stacked on, have both merged. The scope-ID forms use #9494's text rules through sceNetInetNtop and sceNetInetPton.
Related: #9231 changes sceNetSocket's errors and, on macOS, sceNetInetPton's IPv4 path. sceNetSocketInternal follows whatever sceNetSocket returns.
Overlap: checked with
git merge-treeagainst every open PR touching these files, onmain6ef5a1c. The conflicts it reported came from #9515's commits in this branch's base, which are onmainnow that #9515 has merged: #9365, #9099 and #8359 indocs/dev/debt/libkernel.md, and #7511 inSocket/src/Udp.cpp. This PR's own commits change only libSceNet, libSceNetCtl,GuestSceNet.cpp, libSceNet's debt file and the iphlpapi link incore/libs/CMakeLists.txt. #9231 merges cleanly with this PR and with #9494, whose IPv6 path insceNetInetPtonits macOS IPv4 check sits next to, and Gonic0 agreed that neither waits for the other (comment). The order agreed on #9515 (comment), #9523 → #9542 → #9515 → this PR, has reached this PR: the other three have merged. #9542 (Queuse) carried the samesceNetGetsockoptreadback as #9515's e887616, and the merge of #9515's 4432e8a in 57ba2fc kept #9542's version. #14213 (rooklz, interface names) shares the interface table, its host helpers and the iphlpapi links, which this PR takes with the same text, so a merge keeps one copy of each.git merge-treeagainst its 20fd7cf conflicts only inGuestSceNet.cpp, in the same two places as before these commits: both PRs add test functions, and their calls, at the same point. Keeping both sides resolves it.Tested
guest_sce_netfails ×2 on both with the stubs, and passes ×5 on both with this PR.guest_sce_net_testsgains these cases:fe80::1%2round trip, with rejected and boundary texts;main. None of the new cases needs IPv6 networking.main8b3e398 merged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):guest_sce_netandguest_net_ctlpass 10 of 10 on Linux and Windows, none skipped. On its one run withmain's implementation,guest_sce_netfails on both runners andguest_net_ctlpasses. libkernel's suite passes on both, and libc's on Windows.precise_waitfailed on the fix arm only in the run's first attempt. It's a runner timing test outside the files this PR touches, and in run 39788040462 it failed withmain's implementation as well. The rerun of the Linux job passed.check_conventions.pypasses, with no comment lines added.main938812d (efd999c). It brings no conflict of its own, and the PR's own diff is unchanged. On GitHub's runners (run),guest_net_ctl,guest_sce_net,guest_socket_optionsandguest_socket_errorpass 10 runs in a row on Linux and on Windows, 4 of 4, none skipped. The libc and libkernel suites pass on both (119 and 201 tests on Linux, 146 and 211 on Windows), run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maindb6af9e (run).mainnow has fix(libSceNet): convert sceNetInetPton text and null outputs as measured on a PS5 #10275 (orezraey'ssceNetInetPton, measured on a PS5: a nulldstfor IPv6 returnsNET_EINVAL, IPv4 text ends at the first whitespace, and the dotted IPv4 part of IPv6 text is checked the same way). The merge keeps that function asmainhas it and sends only its IPv6 conversion through libkernel'sinet_pton, as this PR does; the IPv4 conversion and the dotted-part check stay on the host. The debt file keepsmain's measured entry and this PR's IPv6 entry, which now says the FreeBSD forms are unverified on a console beyond those PS5 measurements.guest_net_ctl,guest_sce_net,guest_socket_errorandguest_socket_optionspass 10 runs in a row on both runners, 4 of 4 each, none skipped. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. This PR'ssceNetInetPtonWithScopeIdcallssceNetInetPtonwith the text before the zone, so it takes the same rules.main67bbe03 (abbb7ac, whose one conflict wasdocs/dev/debt/libkernel.md, where feat(libkernel): answer sceKernelAddReadEvent and sceKernelAddWriteEvent on regular files #9099 (aarushkha, regular-file events) reworded thesceKernelAddReadEventpipe entry and added its own regular-file entry just above this PR'sclose,setsockoptandgetsockoptline; the merge keeps both ofmain's entries and this PR's line). It brings no conflict of its own, and the PR's own diff is unchanged. On GitHub's runners (run),guest_net_ctl,guest_sce_net,guest_socket_errorandguest_socket_optionspass 10 runs in a row with the change, on Linux and on Windows: 4 run, 4 pass, 0 skip, 0 fail. Withmain's code,guest_sce_netfails on both. The libc and libkernel suites pass on both (143 and 205 tests on Linux, 170 and 218 on Windows), run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maina512780 (fc47c2f; see fix(libkernel): getsockopt reads options of libSceNet sockets #9515). The conflicts were incore/libs/tests/GuestSceNet.cppand libSceNet'sExport.cpp, where refactor(libs): add full export headers for libs #10706 (the public-header migration) removed their local declarations, among them this PR's forsceNetSocketInternal,sceNetGetsockoptEx,sceNetSetsockoptEx,sceNetSysctl,sceNetInetNtopWithScopeId,sceNetInetPtonWithScopeId,sceNetConfigGetDefaultRouteand libkernel'ssysctl,__inet_ptonand__inet_ntop. The merge takesmain's side:Net.hppand libkernel'sinclude/Api.hppnow declare each of them with the same arguments as this PR's definitions, andtests/test_public_headers.py --audit-onlypasses. So the PR's own diff loses those declarations and is otherwise unchanged.guest_net_ctl,guest_sce_net,guest_socket_error,guest_socket_optionsandpublic_headerspass 10 runs in a row with the change, on Linux and on Windows: 5 run, 5 pass, 0 skip, 0 fail. Withmain's code,guest_sce_netfails on both.guest_floating_pointfailed once in that run, on itsfeholdexcept workers preserve the main environmentcheck, which feat(libc): implement feholdexcept #8863 added; this PR changes nothing in libc. Run alone on this head 20 times in a row (run), it passes on both runners, and both suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main75227c7 (run). The one conflict wasdocs/dev/debt/libkernel.md's entry on libSceNet sockets, wheremainaddspollandfcntland this PR addsgetsockopt; the merge keeps both, in the same words as fix(libkernel): getsockopt reads options of libSceNet sockets #9515's merge. The PR's code diff is unchanged.guest_sce_netandguest_tcppass 10 runs in a row on both runners.guest_floating_point, which this PR doesn't touch, passed 10 of 10 on Windows; on Linux it passed seven times and aborted on the eighth run, atfeholdexcept workers preserve the main environment. At 6c938db it passed 20 runs in a row on both runners (run). That check is the AMD x87 pointer-word case reported in tests: guest_floating_point fails at random on AMD hosts: "feholdexcept workers preserve the main environment" #10899, which fix(tests): compare x87 pointer words in guest_floating_point only when both images have ES set #10937 addresses; both aborts here were on AMD EPYC Linux runners. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main2b52256 (run).mainnow has fix(libSceNet): follow FreeBSD inet text rules for IPv6 #9494, so its part of this branch leaves the diff: the IPv6 text conversion insceNetInetPtonandsceNetInetNtop,CheckRejectedAddressTextand thesceNetInetPton, sceNetInetNtopdebt entry. This PR's other changed lines are the same as before the merge. One conflict, indocs/dev/debt/libSceNet.md: KernelPanicNT's fix(libSceNet): reject the flags and names the module rejects #9727 adds asceNetResolverStartNtoaentry after thesceNetInetPton, sceNetInetNtopentry both sides now carry, and the merge takes it.guest_net_ctlandguest_sce_netpass 10 runs in a row, andguest_sce_netfails on the before arm. Linux: 2 run, 2 pass, 0 skip, 0 fail. Windows: 2 run, 2 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which this PR doesn't touch;main88f9967 fails the same two in this verify's Windows job (run), andmain's own Windows CI passes them. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main439d03d, whose one conflict, in libSceNetCtl'sExport.cpp, keeps this PR'sNetCtlHostIpv4Gatewayhelper next tomain's STUN block from feat(libSceNetCtl): implement sceNetCtlGetNatInfo #10790; 930c1c0, which removes the four assertions that pinned valid inputs to throw (the named zonefe80::1%lo0, the two AF_INET scope conversions, andsceNetConfigGetDefaultRoutewith a valid output and no host gateway), keeping the malformed and null-pointer checks, the numeric IPv6 round trips and the success and no-write controls; and a merge of fix(libkernel): getsockopt reads options of libSceNet sockets #9515's 4432e8a, which drops the duplicate readback block (see fix(libkernel): getsockopt reads options of libSceNet sockets #9515). This PR's other changed lines are the same.guest_sce_net,guest_net_ctl,guest_socket_error,guest_socket_options,guest_tcp,guest_net_boolean_readback,guest_socket_descriptor_flagsandpublic_headerspass 10 runs in a row. Linux: 8 run, 8 pass, 0 skip, 0 fail. Windows: 8 run, 8 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194) and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maincc672fd (run). The one conflict was in libSceNet'sExport.cpp, where fix(libSceNet): print the interface and socket tables from sceNetShowIfconfig and sceNetShowNetstat #10502 (frankea, the interface and socket tables fromsceNetShowIfconfigandsceNetShowNetstat) declares libSceNetCtl'sNetCtlHostIpv4Address_nid_no_patchon the line where this PR declaresNetCtlHostIpv4Gateway_nid_no_patch; the merge keeps both declarations. This PR's other changed lines are the same.guest_sce_net,guest_net_ctl,guest_net_boolean_readback,guest_socket_descriptor_flags,guest_socket_error,guest_socket_optionsandguest_tcppass 10 runs in a row. Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 7 run, 7 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main2960e9a after fix(libkernel): getsockopt reads options of libSceNet sockets #9515 merged (run). The merge was clean. With fix(libkernel): getsockopt reads options of libSceNet sockets #9515 onmain, its lines leave this PR's diff: the libkernel socket files and debt entry, and its getter in libSceNet'sExport.cppwith its tests inGuestSceNet.cpp. The diff now holds only libSceNet, libSceNetCtl,GuestSceNet.cppand libSceNet's debt file, and this PR's own changed lines are the same as before the merge.guest_sce_net,guest_net_ctl,guest_net_boolean_readback,guest_socket_descriptor_flags,guest_socket_error,guest_socket_optionsandguest_tcppass 10 runs in a row, and withmain's codeguest_sce_netfails on both runners ("sceNetSocketInternal not implemented"). Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 7 run, 7 pass, 0 skip, 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.guest_sce_netand the 11net_dontwait_blocking_*andnet_epoll_lifetime_*tests, which build libSceNet'sExport.cppinto themselves, pass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. With e88598f'sExport.cpp,guest_sce_netaborts on both runners at its first new check ("the interface name zone in fe80::1%lo0 is not implemented"). The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.0x8041130Cwith the output untouched, for a null output too) also ran on Linux in a network namespace with onlyloup.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)