Re-deprecating sysctl()
Posted Aug 30, 2007 15:45 UTC (Thu) by
jzbiciak (
✭ supporter ✭, #5246)
In reply to:
Re-deprecating sysctl() by nix
Parent article:
Re-deprecating sysctl()
Indeed, from an strace of ls:
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfffe41c, 31, (nil), 0}) = 0
Seems like it'd be easy to filter out *that* specific use (getting the kernel version number), and report all the other uses. This also argues that the kernel will probably need to support this specific sysctl even if it deprecates and ultimately removes other sysctl support. After all, we have statically linked binaries out there.
(
Log in to post comments)