use poll rather than select in dns lookups (also clock_gettime)
authorRich Felker <dalias@aerifal.cx>
Thu, 22 Sep 2011 03:17:45 +0000 (23:17 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 22 Sep 2011 03:17:45 +0000 (23:17 -0400)
commitbf027ca5e0c7bc0b90e84dcbb1d7cbea6ed1e3ef
tree09873e1c784b4ac272accec695153bb7f6a2eb6b
parent81a5577a860b1d320239a84c84266e4d7045f450
use poll rather than select in dns lookups (also clock_gettime)

if the file descriptor resource limit has been increased past
FD_SETSIZE, this is actually a security issue; we could write past the
end of the fd_set object. using poll makes it a non-issue, and
simplifies the code at the same time.

also, use clock_gettime instead of gettimeofday, for reduced bloat
and better entropy.
src/network/__dns.c