platform_bionic/libc/dns
Derek Xue ba811120ae Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).
This change is to migrate the getaddrinfo tests defined in the old file
system/extras/tests/bionic/libc/common/test_getaddrinfo.c
to the new place bionic/tests/netdb_test.cpp.

The test here is more thorough, and catches a bug in getservbyname(3)
that was breaking getaddrinfo(3)'s ability to look up services by name
without a hint that would cause it to ask for a specific protocol.

Change-Id: Ief5ebd0869496d1bc6a97861dfefa04bdf24bab1
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-22 22:23:10 -07:00
..
include Replace uses of sprintf(3) with snprintf(3). 2014-10-08 16:12:27 -07:00
nameser Replace uses of sprintf(3) with snprintf(3). 2014-10-08 16:12:27 -07:00
net Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3). 2014-10-22 22:23:10 -07:00
resolv Replace uses of sprintf(3) with snprintf(3). 2014-10-08 16:12:27 -07:00
gethnamaddr.c libc should use O_CLOEXEC when opening files for its own use. 2014-08-26 15:56:54 -07:00