Repository navigation
feat(libc): implement __inet_addr - #1972
Conversation
|
Correction to my earlier note: I verified the pinned FreeBSD |
|
Since you withdrew that request on #1848 after checking FreeBSD |
6f56497 to
2b229d4
Compare
|
PR #2231 is now the canonical, more complete IPv4-helper change. It includes this implementation along with the other parsing/formatting helpers, preserves the original author commits in its history, and adds cross-function round-trip coverage. The exact head has a local Linux full-build result with the documented GCC 12 SaveData workaround, and I requested the upstream Build. Please close this overlapping PR as superseded once the current-head Build on #2231 is reviewed. |
2b229d4 to
3763277
Compare
|
I still consider my #2231 the better canonical merge target for this IPv4 helper family: it carries your The exact #2231 head |
|
Update after rebase: #2231 is now on current I still consider #2231 the better canonical target for the IPv4 helper family because it preserves and combines the three implementations and adds cross-function tests. The overlapping PRs remain open until maintainers decide whether this cohesive family should land together; I am not treating the old Windows batch as current-head validation. |
3763277 to
a06f701
Compare
|
Rebased onto current |
a06f701 to
128d2e8
Compare
What
Implements
__inet_addr(7p7kTAJcuGg) in libc on top of__inet_atonfrom #1848, as FreeBSDlib/libc/inet/inet_addr.cdoes: the address from__inet_atonin network byte order, orINADDR_NONE(0xFFFFFFFF) when it rejects the text. Titles import it fromlibSceLibcInternal.Depends on #1848. Until that merges, this branch also contains its commit.
Why
It is a title's next stop on current
main: PPSA19111 XashPS5 stops on it on Linux and Windows.mainf145139app.elf: symbol lookup error: app.elf: undefined symbol: 7p7kTAJcuGgundefined symbol: -nvxBWa0iDs(gethostname, #1594)FAIL: unresolved ELF import 7p7kTAJcuGg from libSceLibcInternal.prxTested
Linux (Ubuntu 24.04, GCC 13, Release):
guest_stringspasses with--repeat until-fail:3. It now checks__inet_addragainst every invalid input of the__inet_atontest (INADDR_NONE), the dotted, shortened and hexadecimal forms,0.0.0.0and255.255.255.255, by the byte order of the result. The test fails when theINADDR_NONEfallback is removed.check_conventions.pypasses. Windows:StringExtensions.cppcompiles with MinGW-w64 GCC 13 (-Wall -Wextra -fsyntax-only).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)