site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 25, 2007, at 4:50 PM, Terry Lambert wrote:
activecpu is the correct name; the manifest constant name was not changed because people have existing code that has to compile vs. the MIB version of the call. Okay, I'll use that then. The preferred method for all sysctls going forward is to use sysctlbyname(), so that's what you should use in new code. I did wonder about that. All of the examples I've seen on this list have been of the sysctlbyname() type.
FWIW, sysctl is probably an easier (definitely more portable) way to get at this info: I think you meant sysconf (that's what the man page points to...)? -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Jun 27, 2007, at 1:09 PM, James Peach wrote: On 27/06/07, Steve Checkoway <s@pahtak.org> wrote: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/sysc... There's no portable sysconf()'s for CPU number/activity/SMT/etc. identification. Linux has introduced a couple, but until everyone agrees on scoping rules, it's not going to be safe to implement them, since that may not end up being what The Austin Group decides will make it into the standard, so it's impossible for anyone to adopt the experimental ones Linux uses, and ensure binary backward compatibility AND standards compliance at the same time. This email sent to site_archiver@lists.apple.com