feat(libSceNet): implement sceNetUsleep and sceNetInetPtonEx #7823
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7823"
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 Chikimaro on 2026-10-19T09:03:34Z.
What
Implements two of the
libSceNetexports #6603 declared without parameters:sceNetUsleep(int microseconds)fails withEINVAL(0x80410116) for a negative count and otherwise sleeps through libkernel'ssceKernelUsleep, so the sleep stays a cancellation point, and returns 0.sceNetInetPtonEx(int af, const char* src, void* dst, int flags)converts assceNetInetPtondoes whenflagsis 0, including its results and errors. Any other flags throw, since their meaning is not known.Both signatures and the negative-count error follow shadPS4's net.cpp; shadPS4 also forwards
sceNetInetPtonExtosceNetInetPtonand does not know its flags. They are not measured on a console, and the two entries indocs/dev/debt/libSceNet.mdnow say so in place of "unknown signature".No open PR names either function.
tools/pr_overlap.pycould not compare #5836, #6044, #7201, #7332 and #7511 because they conflict withmain; their diffs touch neither function, their debt entries nor the lines ofGuestSceNet.cppthis changes.Tested
Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 (UCRT), Release, full build with
-DBUILD_TESTING=ON, onmaineaae7e069; after the rebase onto959cfdd1cthe 22 tests matchingsce_net|datagram|socket_host_write|refused_connect|net_ctl|guest_netwere run again and pass.guest_sce_netgainsCheckInetPtonEx(IPv4 and IPv6 conversion matchingsceNetInetPton, invalid text, an unsupported family, null source and destination, nonzero flags throwing) andCheckUsleep(0, a 2 ms sleep that takes at least 2 ms, a negative count failing withEINVAL). It passes 5 of 5 runs.Export.cppfrommain,guest_sce_netfails withsceNetInetPtonEx not implemented.libSceNet(23, matchingsce_net|datagram|socket_host_write|refused_connect|memory_pool|net_ctl|guest_net) passes.tools/progress.py --module libSceNet: 54 of 222, from 52.python3 tools/check_conventions.py --base origin/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T09:14:57Z.
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.
core/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cppdocs/dev/debt/libSceNet.mdcore/libs/tests/GuestSceNet.cppcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cpp