platform_bionic/libc/upstream-netbsd/android/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
..
sys Remove SHA1 from LP64 in favor of libcrypto. 2014-06-16 16:52:27 -07:00
env.h Clean up some obsolete NetBSD portability cruft. 2019-10-29 19:58:17 -07:00
extern.h Clean up some obsolete NetBSD portability cruft. 2019-10-29 19:58:17 -07:00
fd_setsize.h Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
namespace.h Clean up some obsolete NetBSD portability cruft. 2019-10-29 19:58:17 -07:00
netbsd-compat.h Make res_init() work again. 2021-04-08 12:04:05 -07:00
port_after.h Clean up some obsolete NetBSD portability cruft. 2019-10-29 19:58:17 -07:00
port_before.h Clean up some obsolete NetBSD portability cruft. 2019-10-29 19:58:17 -07:00
rand48.h Hide rand48 implementation details. 2014-06-09 18:10:20 -07:00
reentrant.h Remove unused NetBSD compatibility cruft. 2018-09-20 13:27:41 -07:00
resolv_mt.h Remove dead code. 2018-09-18 14:28:48 -07:00