about summary refs log tree commit diff
path: root/src/network/gethostbyname2_r.c
Commit message (Collapse)AuthorAgeFilesLines
* fix gethostby*_r result pointer value on errorTimo Teräs2014-06-201-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.
* improve gethostbyname2_r using new resolver backendRich Felker2014-06-011-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.
* include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy2013-12-121-1/+1
|
* fix memory leak due to double call to getaddrinfo in gethostbyname*Rich Felker2013-02-021-1/+0
|
* fix error returns in gethostby*_r functionsRich Felker2013-02-021-9/+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/+99