User: Password:
|
|
Subscribe / Log in / New account

Re-deprecating sysctl()

Re-deprecating sysctl()

Posted Aug 30, 2007 1:07 UTC (Thu) by JoeBuck (guest, #2330)
Parent article: Re-deprecating sysctl()

What if sysctl() were replaced by a library that performed the same functions by accessing the /proc/sys filesystem? Then the rotted code could be removed from the kernel but clients would continue to function. As long as the intent is to provide similar capabilities from /proc/sys, the code to do the translation from one to the other could live in userspace. After all, apps don't invoke the kernel directly, they go through glibc to do a sysctl().


(Log in to post comments)

Re-deprecating sysctl()

Posted Aug 30, 2007 10:09 UTC (Thu) by nix (subscriber, #2304) [Link]

Well, glibc is one of the (very few) users, and although it does fall back to /proc/sys where needed, that's going to be both slower (more syscalls) and won't work in chroots or other environments where /proc may not be mounted.

And it's generally considered bad to require a new glibc with a new kernel...


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds