Jim Meyering <address@hidden> writes:
+ if (sysctlbyname ("hw.cputype", &cputype, &s, NULL, 0) == 0
This is more of a question for Toby, but would it be possible and/or
advisable to convert that to a call to sysctl instead of sysctlbyname?
The current coreutils/src/uname.c is already using sysctl elsewhere,
so it'd be one less function to worry about if we avoided sysctlbyname.
<http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man3/sysctlbyname.3.html>
says that sysctlbyname is a small wrapper around sysctl, so it should
be possible to avoid sysctlbyname.