feat(libs): implement socketpair, syslog and sceVideoOutGetResolutionStatus #1839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1839"
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 sx4im on 2026-10-08T21:13:11Z.
Implements three exports that #1578 reports as unresolved imports stopping GPL homebrew titles at start-up:
socketpair(libkernel): connected socket pairs for AF_UNIX, AF_INET and AF_INET6, stream and datagram. POSIX uses the native call for AF_UNIX and a loopback pair otherwise; Windows uses a loopback pair, with a filesystem path pair for AF_UNIX.syslog(libSceLibcInternal): formats the guest message with its varargs and writes it to host stderr.sceVideoOutGetResolutionStatus(libSceVideoOut): reports the configured output width/height as both the full and pane extents.Related to #1578. This covers the three exports from its list with no open PR; the rest are covered by other PRs or need hardware to verify.
Tested
Reproduced first: extracted the import NIDs from the release ZIPs of ps5-opengl (PPSA99005), EVO-PLAYER (PPSA99039) and ProsperoRadio (PPSA99001). Confirmed
6kPnj51T62Y(sceVideoOutGetResolutionStatus),UNS2V4S097M(syslog) andMZb0GKT3mo8(socketpair) are imported but absent from the source exports on main (repo's owntools/nid_names.py::collect_real_names, 3845 names). After the change all three resolve.guest_udp(AF_INET stream pair with bidirectional exchange, AF_INET datagram pair, AF_UNIX stream pair, and the EFAULT/EPROTONOSUPPORT/EAFNOSUPPORT error cases). Runs green standalone.guest_syslog(new): checks formatted output reaches stderr and that a null message throws. Passes on Linux.guest_video_out_wqhd_detection: extended with resolution-status checks (values, invalid handle, null status). Passes on Linux.python3 tools/check_conventions.py --base origin/main: clean.ctestsuite: 462/464 pass. The 2 failures (guest_udp,guest_sce_net) also fail on pristine main in this environment (host EIO fromrecvfromin the container), so they are pre-existing and unrelated. The diff is fully additive: 388 insertions, 0 deletions.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T21:20:43Z.
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.
main)core/libs/prx/libkernel/Socket/src/Udp.cppL4, L14-15core/libs/prx/libSceLibcInternal/Export.cppL6Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:29:54Z.
The overlap check found existing open PRs for every export in this combined change:
socketpairin #1711 (also included in #1795),syslogin #1729, andsceVideoOutGetResolutionStatusin #1714. CONTRIBUTING requires checking for duplicate implementations and keeping one topic per PR. Please coordinate with those authors or the maintainers before continuing; if any existing PR is abandoned, note the agreed handoff and split the independent exports so each branch has one topic.Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-08T21:55:25Z.
Two of these three exports already have earlier open PRs:
sceVideoOutGetResolutionStatusis #1714 (opened 17:25, confirmed on Windows by @LeandroLP23 with EVO Player) andsyslogis #1729 (17:47), andsocketpairis #1711. The project asks for one topic per PR, so it may be simplest to split this up and keep whatever doesn't overlap.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:56:38Z.
Closing: this puts three exports in one PR.
sceVideoOutGetResolutionStatusis in #1714, and no title stops atsocketpairorsyslogon main yet (#1711, #1729). If one becomes a title's stop, please open a PR for that export alone.Pull request closed