fix(libSceNet): sceNetEpollControl takes 2 as MOD and 3 as DEL #4110
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4110"
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 jdmagic on 2026-10-11T23:29:54Z.
What
sceNetEpollControlused Linux'sEPOLL_CTLnumbering (1 add, 2 delete, 3 modify). The SCE values are 1 add, 2 modify, 3 delete (ORBIS_NET_EPOLL_CTL_*in shadPS4'snet_types.h). A delete with op 3 and a null event returnedEINVAL, and op 2 removed the registration it was meant to modify.Sackboy: A Big Adventure (PPSA01289) removes its UDP socket from its epoll with op 3 and a null event before closing it, each time it tears its network session down.
guest_sce_net: op 2 modifies a registration and needs an event, op 3 deletes it with a null event, and a second delete or a modify after it fails withENOENT.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), on main
bca7a29d.guest_sce_net,guest_socket_events,guest_socket_pair,guest_socket_read_write,guest_kernel_errors,guest_filesystem,guest_file_vector: 7/7 passed. The fullctestwas not run on this branch.guest_sce_netchecks fail on main without the change toExport.cpp.EINVALon the epoll delete is gone. With the other libSceNet fixes (the close/setsockopt and errno PRs) the title reaches its first-boot gamma screen; getting there also needs changes outside this PR.This PR and the two other libSceNet PRs from this branch set are independent and merge cleanly with each other.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code