mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
248c6d54bb
Added necessary constants (DNS_TYPE_PTR, NI_NUMERICHOST etc.). Implementation of getnameinfo is similar to getaddrinfo, with internal functions: * ResolveDnsReverse: performs rDNS query and parses the PTR record * ResolveHostsReverse: reads /etc/hosts to map hostname to address Earlier, the HOSTS.txt would only need to be sorted at loading time, because the only kind of lookup was name -> address. Now since address -> name lookups are also possible, so the HostsTxt struct, the sorting method (and the related tests) was changed to reflect this. |
||
---|---|---|
.. | ||
alg | ||
bits | ||
calls | ||
crypto | ||
dns | ||
fmt | ||
intrin | ||
mem | ||
nexgen32e | ||
rand | ||
release | ||
runtime | ||
sock | ||
stdio | ||
str | ||
time | ||
tinymath | ||
unicode | ||
x | ||
xed | ||
test.mk |