about summary refs log tree commit diff
path: root/include/netdb.h
Commit message (Collapse)AuthorAgeFilesLines
* avoid breakage if somebody wrongly defines empty feature test macrosRich Felker2012-11-011-2/+2
|
* default features: make musl usable without feature test macrosRich Felker2012-09-071-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.
* use restrict everywhere it's required by c99 and/or posix 2008Rich Felker2012-09-061-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.
* improve headers to better deal with removed-in-posix-2008 featuresRich Felker2012-08-151-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.
* support _BSD_SOURCE feature test macroRich Felker2012-05-221-2/+2
| | | | | patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
* use __h_errno_location for h_errnoRich Felker2012-05-121-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.
* susv4 removed gethostbyname, etc. legacy cruft.Rich Felker2012-05-121-9/+7
|
* namespace cleanup - NI_* is NOT reserved by netdb.hRich Felker2012-05-121-3/+2
|
* some gnu junk in netdb.hRich Felker2012-05-121-0/+8
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+148