about summary refs log tree commit diff
path: root/src/network/gethostbyaddr_r.c
Commit message (Collapse)AuthorAgeFilesLines
* fix error cases in gethostbyaddr_rRich Felker2022-09-191-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).
* fix gethostbyaddr_r to fill struct hostent.h_length as appropriateTimo Teräs2016-03-241-0/+1
|
* fix gethostby*_r result pointer value on errorTimo Teräs2014-06-201-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.
* fix error returns in gethostby*_r functionsRich Felker2013-02-021-8/+5
| | | | they're supposed to return an error code rather than using errno.
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+71