[PATCH] Linux: Remove <sys/sysctl.h> and the sysctl function

Florian Weimer fw@deneb.enyo.de
Wed Mar 11 18:34:23 GMT 2020


* Zack Weinberg:

> However, I think that glibc should continue to provide sysctl(3) and
> should actively work to make it more like the fully-supported
> sysctl(3) that the BSDs have.  It follows that we should continue to
> install <sys/sysctl.h>.  It would be reasonable for us to treat
> sysctlbyname() as the primary interface and provide compatibility
> MIB-to-name mappings only for the set of MIB vectors that were
> historically supported by Linux's sysctl(2).

I'm sorry, but I strongly disagree with this.  Our MIBs were never
compatible with the FreeBSD MIBs, resulting in application bugs due to
incomplete porting.  I don't see value in maintaining this interface.


More information about the Libc-alpha mailing list