[RFC, PATCH] shrink resolver code a bit

Bernhard Fischer rep.dot.nop at gmail.com
Wed Feb 7 13:23:17 PST 2007


On Wed, Feb 07, 2007 at 10:08:16PM +0100, Bernhard Fischer wrote:
>Hi,
>
>The attached patch is an untested fallout from looking through resolv.c

Forgot two hunks, for the sake of completeness ;) Attached now.

>
>It fixes one potential bug in gethostent_r (see also the factored out
>snippet in buildroot/toolchain/uClibc/*29-fix-geth*).
>
>The rest is just random shrinkage that tries to be least intrusive.
>
>Stats for a quite feature-rich config, including ipv6:
>   text    data     bss     dec     hex filename
> 224525    1584   18572  244681   3bbc9 lib.oorig/libuClibc-0.9.29.so
> 224381    1584   18572  244537   3bb39 lib/libuClibc-0.9.29.so
>
>
>Comments?
>
>PS: The comment for __dn_expand() talks about res_comp(), the latter
>isn't defined anywhere, though. Is this done on purpose?
>Should all of the res_*() depend on some kind of INET_BSD_COMPAT knob?

>   text    data     bss     dec     hex filename
> 224525    1584   18572  244681   3bbc9 lib.oorig/libuClibc-0.9.29.so
> 224381    1584   18572  244537   3bb39 lib/libuClibc-0.9.29.so
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc.resolv-smaller.02d-missing-configbits.diff
Type: text/x-diff
Size: 1219 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070207/c7cd69b8/attachment.bin 


More information about the uClibc mailing list