summaryrefslogtreecommitdiff
path: root/src/network/gethostbyaddr_r.c
AgeCommit message (Collapse)AuthorLines
2022-09-19fix error cases in gethostbyaddr_rRich Felker-2/+3
EAI_MEMORY is not possible (but would not provide errno if it were) and EAI_FAIL does not provide errno. treat the latter as EBADMSG to match how it's handled in gethostbyname2_r (it indicates erroneous or failure response from the nameserver).
2016-03-24fix gethostbyaddr_r to fill struct hostent.h_length as appropriateTimo Teräs-0/+1
2014-06-20fix gethostby*_r result pointer value on errorTimo Teräs-0/+2
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.
2013-02-02fix error returns in gethostby*_r functionsRich Felker-8/+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/+71