mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-26 11:10:58 +00:00
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 | ||