summaryrefslogtreecommitdiff
path: root/src/network/gethostbyaddr.c
AgeCommit message (Collapse)AuthorLines
2022-10-20fix return value of gethostby{name[2],addr} with no result but no errorRich Felker-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}.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy-2/+0
2013-02-02dynamically allocate storage for gethostby* buffersRich Felker-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.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+15