fix(libs): TLOU runtime funcs for Net (getpeername, htonll/ntohll) #302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/302"
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 Pouare514 on 2026-10-01T23:38:35Z.
What
TLOU Part I needs
sceNetGetpeernameplus 64-bit byte-order helpers. ImplementssceNetGetpeername(mirrorssceNetGetsockname, guest address translation included),sceNetHtonllandsceNetNtohll. This also resolves the formersceNetUnknown00(TCkRD0DWNLgcomputes tosceNetGetpeername), so that stub is removed. Split out of the former combined TLOU runtime PR.Tested
libstarget builds clean (was failing on duplicate patched export before removing the resolved Unknown00).Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-01T23:39:01Z.
Progress report (
2cf901b→fb9e0ff)📈 System libraries: 77.39% (+0.04%, +3 implemented, -1 removed functions)
✅ 3 implemented
sceNetGetpeernamesceNetHtonllsceNetNtohll🗑️ 1 removed
sceNetUnknown00Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T05:40:34Z.
Thanks for pushing TLOU along. This needs splitting and a few changes: one topic per PR (Net, Rtc, SessionSignaling, VideoOut and Ssl are separate), and the functions that return 0 without doing anything (
sceSslLoadCert,sceSslGetMemoryPoolStats,sceVideoOutVrrPegandsceVideoOutVrrStatusUnknown00) either need a real implementation or must throw withNotImplemented_nid_no_patch, since they are not UI silent stubs. Main already hassceNpSessionSignalingGetConnectionStatuswith its real signature, so the(void)one here has to go (merged as is, the file would define it twice), and the TechnicalDebt hunk repeats #301's lines. ForsceRtcParseDateTime, could you say where the accepted format comes from?Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T14:35:19Z.
Split done as requested: this PR is now Net only (getpeername, htonll/ntohll, plus removing the resolved sceNetUnknown00). The other topics are #516 (Rtc), #517 (SessionSignaling), #518 (VideoOut), #519 (Ssl). Changes in this round: VrrPeg/VrrStatusUnknown00/LoadCert/GetMemoryPoolStats now throw instead of returning 0, the duplicate (void) GetConnectionStatus is dropped, the TechnicalDebt duplicates shared with #301 are dropped here, and the ParseDateTime format source (assumed ISO 8601 subset, unverified) is recorded in TechnicalDebt. Bonus find: sceNetGetpeername computes to TCkRD0DWNLg, so the old sceNetUnknown00 stub is removed. Each branch builds clean (libs target).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:07:45Z.
Thanks for the split. This one is ready to merge from my side:
sceNetGetpeernamefollowssceNetGetsockname, TCkRD0DWNLg is its NID, andswap64swaps all eight bytes correctly.