[RFC, PATCH] shrink resolver code a bit
Bernhard Fischer
rep.dot.nop at gmail.com
Wed Feb 7 13:08:16 PST 2007
Hi,
The attached patch is an untested fallout from looking through resolv.c
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc.resolv-smaller.02e.diff
Type: text/x-diff
Size: 14205 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070207/3d55d4f5/attachment.bin
More information about the uClibc
mailing list