libScePosixForWebKit: getservbyname is absent (Cloud Play); fix branch ready #3734
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T16:12:13Z.
libScePosixForWebKit does not export
getservbyname(NIDH1bArJPagV0). Cloud Play (PPSA99600) imports it from that library only (registry index 408, called from the title's owngetaddrinfofor non-numeric service names; predictedFAIL: unresolved ELF import H1bArJPagV0 from libScePosixForWebKit.prxoncefnmatch(#3545) lands).Fix branch ready:
screamm:feat/posixforwebkit-getservbyname(b1cf370a, one commit onmaina11c8f7f). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is.lib/libc/net/getservent.cfiles_servent(8c639945): exact-case match on the name or an alias, a null protocol taking the first matching line, the port in network byte order, a per-thread result as FreeBSD'sNSS_TLS_HANDLING(servent)keeps it, null with errno untouched when not found,ENOMEMon allocation failure. The guestserventis 32 bytes (name 0, aliases 8, port 16, proto 24), which the title's call site confirms (it reads the port big-endian at offset 16).etc/servicesat the pin (ftp-data, ftp, ssh, telnet, smtp, domain, tftp, http, pop3, ntp, imap, https, rtsp, submission, imaps, pop3s with all their protocol lines and aliases); none of those names appears earlier in the full file, so each lookup matches the full file's answer. The full 1976-entry file was judged too large; a reviewer may want it anyway. Guestgetaddrinfostill uses the host's service database, recorded in TechnicalDebt.guest_service_databasecovers http/tcp with aliases, https with a null protocol, domain/udp, alias lookups, the null cases (unknown, wrong protocol, wrong case) and per-thread isolation.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_service_databaseandguest_resolver3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"534/537, the failures being the knownwindows_exceptions(#3411, fixed by #3415),guest_kernel_sys(#3510) andguest_filesystem(#3518); withmain'sResolver.cppthe new test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).