summaryrefslogtreecommitdiff
path: root/src/network/gethostbyname2_r.c
AgeCommit message (Collapse)AuthorFilesLines
2016-09-24remove dead case in gethostbyname2_rDaniel Sabogal1-2/+0
this case statement was accidently left behind when this function was refactored in commit e8f39ca4898237cf71657500f0b11534c47a0521.
2016-06-27fix misaligned address buffers in gethostbyname[2][_r] resultsRich Felker1-7/+7
mistakenly ordering strings before addresses in the result buffer broke the alignment that the preceding code had set up.
2014-06-20fix gethostby*_r result pointer value on errorTimo Teräs1-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 Felker1-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 Nagy1-1/+1
2013-02-02fix memory leak due to double call to getaddrinfo in gethostbyname*Rich Felker1-1/+0
2013-02-02fix error returns in gethostby*_r functionsRich Felker1-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 Felker1-0/+99