diff options
author | otto <> | 2005-11-30 07:51:02 +0000 |
---|---|---|
committer | otto <> | 2005-11-30 07:51:02 +0000 |
commit | f8452f05564b5820c3745b9348d85a2b3a745467 (patch) | |
tree | 803b53c012ae878cdf973f67d5346e2452f9e177 /src/lib/libc/net/res_init.c | |
parent | 75ccbec66ef4157baa8c840a64a98a73287280fb (diff) | |
download | openbsd-f8452f05564b5820c3745b9348d85a2b3a745467.tar.gz openbsd-f8452f05564b5820c3745b9348d85a2b3a745467.tar.bz2 openbsd-f8452f05564b5820c3745b9348d85a2b3a745467.zip |
Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a time
and remove fallback code. If somebody is dumb enough to make the
sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls
on process startup.
looks good miod@ ok deraadt@ tedu@
Diffstat (limited to 'src/lib/libc/net/res_init.c')
0 files changed, 0 insertions, 0 deletions