This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add x32 dummy sysctl
On 5/17/2012 6:49 PM, Roland McGrath wrote:
> Oh, forgot to mention:
> Since sysctl and <sys/sysctl.h> are thoroughly deprecated, we really should
> not have them in linux/Makefile where new ports get them by default. I
> think the right (enough) thing to do is move their additions to
> linux/sysctl.mk and have each linux/machine/Makefile for a machine that has
> an existing abilist containing sysctl include that file explicitly.
In ports, the linux-generic port does have a definition of sysctl() that
returns -1 with ENOSYS, and includes a stub_warning(). For now this avoids
potential issues from older code that might try to call this API as a
fallback if /proc/sys isn't available (for example).
Chris Metcalf, Tilera Corp.