summaryrefslogtreecommitdiff
path: root/include/netdb.h
AgeCommit message (Collapse)AuthorLines
2012-11-01avoid breakage if somebody wrongly defines empty feature test macrosRich Felker-2/+2
2012-09-07default features: make musl usable without feature test macrosRich Felker-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 Felker-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 Felker-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 Felker-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 Felker-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 Felker-9/+7
2012-05-12namespace cleanup - NI_* is NOT reserved by netdb.hRich Felker-3/+2
2012-05-12some gnu junk in netdb.hRich Felker-0/+8
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+148