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

Florian Weimer fw@deneb.enyo.de
Wed Mar 11 17:48:16 GMT 2020


* Adhemerval Zanella via Libc-alpha:

>> +/* The sysctl definition from the generic subdirectory does not
>> +   include the __sysctl compat symbol.  */
>> +#define NEED_PRIVATE_SYSCTL 0
>> +#include <sysdeps/unix/sysv/linux/sysctl-common.h>
>
> Wouldn't be better to define the NEED_PRIVATE_SYSCTL per architecture
> instead and remove this generic file?

Hmm.  Maybe we should use a version-based definition for __sysctl, and
override that for the powerpc64le port?

The removal will not just break builds, but also magically fix some
broken software which incorrectly tries to use sysctl to obtain
randomness, due to a wrong/incomplete port from the BSDs.


More information about the Libc-alpha mailing list