about summary refs log tree commit diff
path: root/src/network/gethostbyaddr.c
Commit message (Collapse)AuthorAgeFilesLines
* fix return value of gethostby{name[2],addr} with no result but no errorRich Felker2022-10-201-1/+1
| | | | | | | | | | | commit f081d5336a80b68d3e1bed789cc373c5c3d6699b fixed gethostbyname[2]_r to treat negative results as a non-error, leaving gethostbyname[2] wrongly returning a pointer to the unfilled result buffer rather than a null pointer. since, as documented with commit fe82bb9b921be34370e6b71a1c6f062c20999ae0, the caller of gethostby{name[2],addr}_r can always rely on the result pointer being set, use that consistently rather than trying to duplicate logic about whether we have a result or not in gethostby{name[2],addr}.
* include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy2013-12-121-2/+0
|
* dynamically allocate storage for gethostby* buffersRich Felker2013-02-021-5/+16
| | | | | | | | | | this change shaves ~1k off libc.so bss size, and also avoids hard errors in the case where the static buffer was not large enough to hold the result. this whole framework is really ugly and might should be replaced or at least heavily overhauled when some changes/factorizations are made to getaddrinfo internals in the future.
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+15