summaryrefslogtreecommitdiff
path: root/include/netdb.h
AgeCommit message (Collapse)AuthorFilesLines
2012-11-01avoid breakage if somebody wrongly defines empty feature test macrosRich Felker1-2/+2
2012-09-07default features: make musl usable without feature test macrosRich Felker1-5/+1
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker1-2/+8
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2012-08-15improve headers to better deal with removed-in-posix-2008 featuresRich Felker1-11/+16
with this patch, setting _POSIX_SOURCE, or setting _POSIX_C_SOURCE or _XOPEN_SOURCE to an old version, will bring back the interfaces that were removed in POSIX 2008 - at least the ones i've covered so far, which are gethostby*, usleep, and ualarm. if there are other functions still in widespread use that were removed for which similar changes would be beneficial, they can be added just like this.
2012-05-22support _BSD_SOURCE feature test macroRich Felker1-2/+2
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
2012-05-12use __h_errno_location for h_errnoRich Felker1-1/+5
we do not bother making h_errno thread-local since the only interfaces that use it are inherently non-thread-safe. but still use the potentially-thread-local ABI to access it just to avoid lock-in.
2012-05-12susv4 removed gethostbyname, etc. legacy cruft.Rich Felker1-9/+7
2012-05-12namespace cleanup - NI_* is NOT reserved by netdb.hRich Felker1-3/+2
2012-05-12some gnu junk in netdb.hRich Felker1-0/+8
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+148