]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: getaddrinfo syscall with built-in hosts table + DNS fallback
authorTulio A M Mendes <[email protected]>
Sun, 15 Feb 2026 01:13:29 +0000 (22:13 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 15 Feb 2026 01:13:29 +0000 (22:13 -0300)
commit3537569027cf9f92d7148801aeb56490c1252723
treebb3081dc864bb740bb775eef1998c5ce50f4289f
parent81ac3048c5029faab70fa8e84062654306b5bb17
feat: getaddrinfo syscall with built-in hosts table + DNS fallback

- SYSCALL_GETADDRINFO = 108
- Built-in localhost/localhost.localdomain -> 127.0.0.1
- Falls back to kernel dns_resolve() for other hostnames
- Returns IPv4 address in network byte order
- 35/35 smoke tests pass, cppcheck clean
include/syscall.h
src/kernel/syscall.c