feat(libs): implement socketpair, syslog and sceVideoOutGetResolutionStatus #1839

Closed
sx4im wants to merge 1 commit from upstream-pr/1839 into main
sx4im commented 2026-10-08 21:13:11 +00:00 (Migrated from github.com)

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) and MZb0GKT3mo8 (socketpair) are imported but absent from the source exports on main (repo's own tools/nid_names.py::collect_real_names, 3845 names). After the change all three resolve.

  • Socketpair coverage added to 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.
  • Full ctest suite: 462/464 pass. The 2 failures (guest_udp, guest_sce_net) also fail on pristine main in this environment (host EIO from recvfrom in the container), so they are pre-existing and unrelated. The diff is fully additive: 388 insertions, 0 deletions.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch)
  • No investigation .md files or images added to the repository
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4792859038 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1839). Originally posted by [sx4im](https://github.com/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) and `MZb0GKT3mo8` (socketpair) are imported but absent from the source exports on main (repo's own `tools/nid_names.py::collect_real_names`, 3845 names). After the change all three resolve. - Socketpair coverage added to `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. - Full `ctest` suite: 462/464 pass. The 2 failures (`guest_udp`, `guest_sce_net`) also fail on pristine main in this environment (host EIO from `recvfrom` in the container), so they are pre-existing and unrelated. The diff is fully additive: 388 insertions, 0 deletions. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`) - [x] No investigation `.md` files or images added to the repository - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-08 21:20:43 +00:00 (Migrated from github.com)

Imported 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.

Pull request Conflicting files (lines on main) Same exports Same new files
#1832 core/libs/prx/libkernel/Socket/src/Udp.cpp L4, L14-15
#1852 core/libs/prx/libSceLibcInternal/Export.cpp L6
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069280582 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1839#issuecomment-6069280582). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T21:20:43Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1832 | `core/libs/prx/libkernel/Socket/src/Udp.cpp` [L4](https://github.com/boykopovar/AnyPS5/blob/6cc0503dacc9d9697d23001d4103780ad2e9acba/core/libs/prx/libkernel/Socket/src/Udp.cpp#L4), [L14-15](https://github.com/boykopovar/AnyPS5/blob/6cc0503dacc9d9697d23001d4103780ad2e9acba/core/libs/prx/libkernel/Socket/src/Udp.cpp#L14-L15) | | | | #1852 | `core/libs/prx/libSceLibcInternal/Export.cpp` [L6](https://github.com/boykopovar/AnyPS5/blob/6cc0503dacc9d9697d23001d4103780ad2e9acba/core/libs/prx/libSceLibcInternal/Export.cpp#L6) | | |
MarcZX10 commented 2026-10-08 21:29:54 +00:00 (Migrated from github.com)

Imported 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: socketpair in #1711 (also included in #1795), syslog in #1729, and sceVideoOutGetResolutionStatus in #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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069420393 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1839#issuecomment-6069420393). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T21:29:54Z. --- The overlap check found existing open PRs for every export in this combined change: `socketpair` in #1711 (also included in #1795), `syslog` in #1729, and `sceVideoOutGetResolutionStatus` in #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.
johnmaia commented 2026-10-08 21:55:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-08T21:55:25Z.


Two of these three exports already have earlier open PRs: sceVideoOutGetResolutionStatus is #1714 (opened 17:25, confirmed on Windows by @LeandroLP23 with EVO Player) and syslog is #1729 (17:47), and socketpair is #1711. The project asks for one topic per PR, so it may be simplest to split this up and keep whatever doesn't overlap.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069790622 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1839#issuecomment-6069790622). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-08T21:55:25Z. --- Two of these three exports already have earlier open PRs: `sceVideoOutGetResolutionStatus` is #1714 (opened 17:25, confirmed on Windows by @LeandroLP23 with EVO Player) and `syslog` is #1729 (17:47), and `socketpair` is #1711. The project asks for one topic per PR, so it may be simplest to split this up and keep whatever doesn't overlap.
oneandonlydean commented 2026-10-09 08:56:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:56:38Z.


Closing: this puts three exports in one PR. sceVideoOutGetResolutionStatus is in #1714, and no title stops at socketpair or syslog on main yet (#1711, #1729). If one becomes a title's stop, please open a PR for that export alone.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077732571 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1839#issuecomment-6077732571). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:56:38Z. --- Closing: this puts three exports in one PR. `sceVideoOutGetResolutionStatus` is in #1714, and no title stops at `socketpair` or `syslog` on main yet (#1711, #1729). If one becomes a title's stop, please open a PR for that export alone.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1839
No description provided.