diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-01 00:45:04 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-01 00:45:04 -0400 |
commit | af7c308ee66c4127700dd7843f885f7f2d030a0c (patch) | |
tree | 02e103e0e40c463b367edae7cc3ae63840c4afdc /src/network/res_msend.c | |
parent | e8f39ca4898237cf71657500f0b11534c47a0521 (diff) | |
download | musl-af7c308ee66c4127700dd7843f885f7f2d030a0c.tar.gz musl-af7c308ee66c4127700dd7843f885f7f2d030a0c.tar.bz2 musl-af7c308ee66c4127700dd7843f885f7f2d030a0c.tar.xz musl-af7c308ee66c4127700dd7843f885f7f2d030a0c.zip |
improve getservbyname_r using new resolver backend
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.
Diffstat (limited to 'src/network/res_msend.c')
0 files changed, 0 insertions, 0 deletions