As far as I can determine, there's no definition in sysctl.h for hw.cputype, which is why I used sysctlbyname().

- Toby

On 09 Nov 2004, at 19.37, Paul Eggert wrote:

Jim Meyering <[EMAIL PROTECTED]> 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.



_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to