improve gethostbyname2_r using new resolver backend
authorRich Felker <dalias@aerifal.cx>
Sun, 1 Jun 2014 04:09:28 +0000 (00:09 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 1 Jun 2014 04:09:28 +0000 (00:09 -0400)
commite8f39ca4898237cf71657500f0b11534c47a0521
tree3c528e1c46e834d8581079f1ddc6198dde7ce0e7
parent6f409bff008a83fa6bc640c10366765874de35e2
improve gethostbyname2_r using new resolver backend

these changes reduce the size of the function somewhat and remove many
of its dependencies, including free. in principle it should now be
async-signal-safe, but this has not been verified in detail.

minor changes to error handling are also made.
src/network/gethostbyname2_r.c