Re: sysctlbyname( "hw.availcpu" ) fails
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y67EzdBIJ5nYKi+gH0vea96ZbF3jFQemAj0D0j33lx24Y1qQKkvMyqvbImasao837cFPlY+pBMcKWSmMY9VEYeNhylsI3iYPEMbP43LLBjP4nlETrTaW3SPCVULeEPey1DO8wooN0jKlovz0gqiZs8r+1OVlaG2Nkhe2nh74ltE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LIJJGcnBOrHOewET2RaqSpGcmJq0m6afcAKNjLbVzeaR14/Mq2n3K4qCCr4qTs/0EG9Xul5w7LnKxDbYuU/rjTaHcCvfkRjVdsMKV6BZ0JsIdoj+5ZHjXst2lwLp+cpgQZRcGTpuL5CzDv1ewuuJn31xq0O9x5jKbG89X6mxoU0= 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/sysc... -- James Peach | jorgar@gmail.com _______________________________________________ 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 27/06/07, Steve Checkoway <s@pahtak.org> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
James Peach