freebsd-dev/lib/libc/resolv
Eric van Gyzen 4cf0f1f5b3 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.

Reviewed by:	jilles
MFC after:	1 week
Sponsored by:	Dell Inc.
Differential Revision:	https://reviews.freebsd.org/D3887
2015-10-23 15:56:17 +00:00
..
h_errno.c Add declarations to eliminate -Wmissing-prototypes warnings 2015-09-20 04:26:55 +00:00
herror.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
Makefile.inc Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
mtctxres.c
res_comp.c Add support for '_' occurring at the beginning or end of a name 2015-06-10 16:15:22 +00:00
res_data.c resolver: abuse _res a little less 2015-10-23 15:56:17 +00:00
res_debug.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_debug.h
res_findzonecut.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_init.c resolver: automatically reload /etc/resolv.conf 2015-10-14 14:26:44 +00:00
res_mkquery.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_mkupdate.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_private.h
res_query.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_send.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_state.c resolver: automatically reload /etc/resolv.conf 2015-10-14 14:26:44 +00:00
res_update.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
Symbol.map Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00