summaryrefslogtreecommitdiff
path: root/src/network/if_nameindex.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-21 23:17:45 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-21 23:17:45 -0400
commitbf027ca5e0c7bc0b90e84dcbb1d7cbea6ed1e3ef (patch)
tree09873e1c784b4ac272accec695153bb7f6a2eb6b /src/network/if_nameindex.c
parent81a5577a860b1d320239a84c84266e4d7045f450 (diff)
downloadmusl-bf027ca5e0c7bc0b90e84dcbb1d7cbea6ed1e3ef.tar.gz
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.
Diffstat (limited to 'src/network/if_nameindex.c')
0 files changed, 0 insertions, 0 deletions