Re: hw.cpufamily vs ASP vs machine.h
Re: hw.cpufamily vs ASP vs machine.h
- Subject: Re: hw.cpufamily vs ASP vs machine.h
- From: Michael Smith <email@hidden>
- Date: Thu, 1 Mar 2007 17:15:50 -0800
On Mar 1, 2007, at 12:05 PM, email@hidden wrote:
Well, I took a different road. I don't want to rely on system_profiler
for additional reasons (one of them is the fact that the -xml
SPHardwareDataType does not work on Mac OS X 10.2, another one
could be
not to use a tank (slow and too much information) to kill an ant).
For PowerPC, I still use the old code if the OS is too old. For
i386, I
use sysctl with the machdep.cpu branch and another one to get the
family and to know whether it's a multi-core or mono-core CPUs.
So in the name of supporting 10.2, you took a path which will not
work on future versions of the OS instead, despite advice from
several Apple folks?
I have to ask, why bother posting here in that case?
As for killing things with a tank; I fear your sense of proportion is
a bit mis-calibrated. Executing a tool and capturing its output for
a one-off operation is a relatively cheap thing to do; the system
expects (even encourages) tools to be used in this fashion.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden