bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bugs #10778] uname: "correct" Darwin/Mac OS X patch


From: Toby Peterson
Subject: Re: [bugs #10778] uname: "correct" Darwin/Mac OS X patch
Date: Tue, 9 Nov 2004 22:07:20 -0500

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 <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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]