libSceNet: sceNetResolverAbort and sceNetResolverStartNtoaMultipleRecords are stubs; fix branch ready #3153
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-10T23:23:24Z.
In libSceNet (Export.cpp)
sceNetResolverAbortandsceNetResolverStartNtoaMultipleRecordsareNotImplemented_nid_no_patchstubs. UFC 6 (PPSA23566, #992, #1502), Palworld (PPSA23126) and LEGO Horizon Adventures (PPSA14632) import them; no run has stopped on them yet.Fix branch ready:
screamm:feat/net-resolver-abort(fb7c1ff3, one commit onmaind2f43cb8). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. It is a rewrite on currentmainof what the intake-closed #2557 did.sceNetResolverStartNtoaMultipleRecords(rid, hostname, info, timeout, retry, flags)shares the lookup of the Ex form (up to 10 IPv4 records into the 384-byte struct,EINVALfor null pointers); any nonzero flag throws like the Ex form.sceNetResolverAbort(rid, flags): unknown idEBADFfirst; with no lookup running, flag 1 makes the next name-to-address lookup on that resolver fail withEINTR(0x80410104) and flag 2 the nextsceNetResolverStartAton, reported throughsceNetResolverGetErrorand used up only after the call's argument checks pass; while a lookup runs on another thread the abort returns at once and that lookup finishes and fails withEINTRwithout writing its output. Flag bits other than 1 and 2 throw. Sources: shadPS4net.cpp/net_resolver.cpp/net_types.hat811bfcd7, SharpProsperoInterop/Net/Socket.csfor the signature; recorded in TechnicalDebt as unverified on hardware, and the obsolete "signature unknown" note for the abort is removed.guest_sce_netgains the multiple-record lookup compared byte for byte with the Ex result, null arguments, an unresolvable name, the throwing flags, abort with flags 0 to 3 including isolation between two resolvers, throwing abort flags, andEBADFfor a destroyed id.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_sce_net3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"475/475; withmain'sExport.cppthe extended test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux. Abort during a running lookup has no test (localhost resolves too fast to race).Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:53:00Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.fb7c1ff3onto currentmain(the branch was 638 commits behind): one conflict indocs/dev/TechnicalDebt.md, resolved by keeping both this entry and main's newer entries; no code conflicts.tools/check_conventions.py --base origin/mainandgit diff --checkpass.guest_sce_netpasses.ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.The rebased branch is available at
blawesom:verify/3153for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:03:45Z.
Carried David’s ready resolver commit unchanged into #3728, preserving its author metadata. I based it on current main and retained the current TechnicalDebt entries; the independent Linux verification is summarized in the PR description.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:08:03Z.
Closing: fixed by #3728.