summaryrefslogtreecommitdiff
path: root/src/network/gethostbyname2_r.c
AgeCommit message (Collapse)AuthorLines
2014-06-20fix gethostby*_r result pointer value on errorTimo Teräs-0/+1
according to the documentation in the man pages, the GNU extension functions gethostbyaddr_r, gethostbyname_r and gethostbyname2_r are guaranteed to set the result pointer to NULL in case of error or no result.
2014-06-01improve gethostbyname2_r using new resolver backendRich Felker-35/+22
these changes reduce the size of the function somewhat and remove many of its dependencies, including free. in principle it should now be async-signal-safe, but this has not been verified in detail. minor changes to error handling are also made.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy-1/+1
2013-02-02fix memory leak due to double call to getaddrinfo in gethostbyname*Rich Felker-1/+0
2013-02-02fix error returns in gethostby*_r functionsRich Felker-9/+5
they're supposed to return an error code rather than using errno.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+99