resolver: make new name resolutions reread /etc/resolv.conf
commit9eb085d490bce9c84beccbf66162e37991e1b9ac
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 6 Dec 2008 20:12:15 +0000 (6 20:12 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 6 Dec 2008 20:12:15 +0000 (6 20:12 -0000)
tree84ab7ccce7da9c2db1daa089c517ef6605719764
parent5adbe137bfe433447fdfcdb281182f37fccc334e
resolver: make new name resolutions reread /etc/resolv.conf
 if 256+ seconds passed since last read;
 fix cases where we switch to next search domain instead of switching
 to new server
 optimize ip4/ip6 combined cases;
 rewrite for(;;) loops so that it's clearer what's going on;
 document buffer usage;
 add TODOs and FIXMEs (for one, gethostbyname2 does not fill
 ->h_aliases field in the result AT ALL, and is iffy in general)

    text    data     bss     dec     hex filename
- 245898    1403   11904  259205   3f485 libuClibc-0.9.30-svn.so
+ 245785    1403   11904  259092   3f414 libuClibc-0.9.30-svn.so
libc/inet/resolv.c