cosmopolitan/test
Gautham 248c6d54bb
Added getnameinfo with only name lookup (#172)
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.
2021-06-09 19:35:44 -07:00
..
dsp Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
libc Added getnameinfo with only name lookup (#172) 2021-06-09 19:35:44 -07:00
net Fix redbean date header in daemonize mode 2021-05-02 11:11:26 -07:00
tool Improve some unicode functions 2021-05-05 07:25:39 -07:00
test.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00