Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sysctlbyname( "hw.availcpu" ) fails



On 27/06/07, Steve Checkoway <email@hidden> wrote:

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:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/sysconf.3.html

--
James Peach | email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >sysctlbyname( "hw.availcpu" ) fails (From: Steve Checkoway <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Terry Lambert <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Steve Checkoway <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.