platform_bionic/libc/dns/include
Elliott Hughes d0bbfa8327 Make res_init() work again.
Change 75830fb836 to fix _nres
initialization to be thread safe accidentally introduced a behavior
change whereby res_init() became a no-op. It also failed to remove all
direct accesses to _nres.

Move the file over to C++ so we can let RAII ensure we're always holding
a lock while using the global state, make all callers access the global
state via this class, and restore the previous behavior of res_init().

Test: atest DnsResolverTest
Bug: 166235340
Change-Id: Ib390a7eac063bc0ff5eeba755e8c74ef1383004e
2021-04-08 12:04:05 -07:00
..
hostent.h Sync with upstream for gethnamaddr.c. 2014-12-17 16:19:27 -08:00
nsswitch.h Remove __LIBC_ABI_PUBLIC__. 2016-07-19 13:56:46 -07:00
resolv_cache.h Add support for deleting per-network DNS resolver caches. 2014-05-14 04:16:18 -07:00
resolv_netid.h Replace android_open_proxy with dns_open_proxy 2018-11-19 18:00:37 +08:00
resolv_params.h Make the resolver retry timeout configurable via __res_params 2018-08-08 15:45:19 +09:00
resolv_private.h Make res_init() work again. 2021-04-08 12:04:05 -07:00
resolv_static.h Make res_init() work again. 2021-04-08 12:04:05 -07:00
resolv_stats.h Add new info functions to resolver for use by Netd. 2016-04-21 10:07:26 +09:00