[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bugs #10778] uname: "correct" Darwin/Mac OS X patch
From: |
Paul Eggert |
Subject: |
Re: [bugs #10778] uname: "correct" Darwin/Mac OS X patch |
Date: |
Tue, 09 Nov 2004 16:37:52 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
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.