History log of /freebsd-10-stable/lib/libc/resolv/res_data.c
Revision Date Author Comments
# 292461 19-Dec-2015 vangyzen

MFC r289837

resolver: abuse _res a little less

In the past, _res was a global variable. Now, it's multiple function calls.
Several functions in the resolver use _res multiple times and therefore
call the function(s) far more than necessary.

Fix those callers to store the result of _res in a local variable.

Add __noinline to the definition of res_init() to avoid the code bloat
that these changes would have otherwise incurred. Thanks to jilles
for noticing this.

Sponsored by: Dell Inc.


# 270838 30-Aug-2014 ume

MFC r269867:
Update our stub resolver to final version of libbind
(libbind-6.0).

Obtained from: ISC


# 270838 30-Aug-2014 ume

MFC r269867:
Update our stub resolver to final version of libbind
(libbind-6.0).

Obtained from: ISC