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

2004-11-10 Thread Toby Peterson
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 ques

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

2004-11-09 Thread Paul Eggert
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 alrea

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

2004-11-09 Thread Jim Meyering
>> Original Submission: I realize that this is fixed in CVS, >> but I've attached a "correct" patch for uname -p on >> Darwin/Mac OS X. Diff is against coreutils 5.2.1. >> >> It attempts to use the correct sysctl to determine the CPU type. >> Unfortunately, I found it necessary to convert "ppc" to

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

2004-10-23 Thread Jim Meyering
> This mail is an automated notification from the bugs tracker > of the project: GNU Core Utilities. > > URL: > Project: GNU Core Utilities > Submitted by: 0 > On: Sat 10/23/2004 at 05:02 > > Category: None > Severity: 5 - Average > I