summaryrefslogtreecommitdiff
path: root/src/network/getservbyname_r.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-01improve getservbyname_r using new resolver backendRich Felker1-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.
2012-07-22make getservby*_r return error code rather than -1 (and using errno)Rich Felker1-9/+17
untested but should be correct..
2012-07-14fix getservby*() with null pointer for protocol argumentRich Felker1-0/+4
not sure this is the best fix but it should work
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+41