Re: How to detect Mac OS X version from a kext
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=I+hnT6UPz3y17EI43jJ9r4lpOUSIPU6FxHs6Mq/po4G6E+yNYGtyrd+0SwTiu260TNee6wyysDDhy2KwxtdRnfLnWp4EIZ7kksfElQoNoicexqo6y48aCweDMBF6qNJ7P6OaxBm7PmKk/Fbdy+H9eZ0p3NNh89LvR30M4MswXWI= ; Tony On Jun 17, 2007, at 1:46 PM, Michael Smith wrote: This is a marketing number. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Sounds like a job for a sysctl call. If you truly only care whether it's Leopard or Tiger, than just do a sysctl call to find out the OS version. If it comes out 10.5.x, it's Leopard. I don't know what versioning scheme Apple uses for the OS (10.4.9) versus the xnu kernel (792.18.5) This is related to build and branch activity within the development organisation. versus the utsname (8.9.1). Hence the question. This number is your best bet; the major digit has consistenly been bumped at each major OS release. You will want to get confirmation from DTS (Garth?), but it seems reasonable to assume that as Panther was 7.x and Tiger was 8.x that Leopard will be 9.x. Assuming you don't care about folks running old Leopard kernels (prior to the fix), then that's easy enough to implement. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/friskythecat% 40sbcglobal.net This email sent to friskythecat@sbcglobal.net This email sent to site_archiver@lists.apple.com
participants (1)
-
Tony Scaminaci