about summary refs log tree commit diff
path: root/src/network/getservbyname_r.c
Commit message (Collapse)AuthorAgeFilesLines
* improve getservbyname_r using new resolver backendRich Felker2014-06-011-21/+15
| | | | | | | | | | | | now that host and service lookup have been separated in the backend, there's no need for service lookup functions to pull in the host lookup code. moreover, dynamic allocation is no longer needed, so this function should now be async-signal-safe. it's also significantly smaller. one change in getservbyname is also made: knowing that getservbyname_r needs only two character pointers in the caller-provided buffer, some wasted bss can be avoided.
* make getservby*_r return error code rather than -1 (and using errno)Rich Felker2012-07-221-9/+17
| | | | untested but should be correct..
* fix getservby*() with null pointer for protocol argumentRich Felker2012-07-141-0/+4
| | | | not sure this is the best fix but it should work
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+41