Re: How to detect Mac OS X version from a kext
Re: How to detect Mac OS X version from a kext
- Subject: Re: How to detect Mac OS X version from a kext
- From: Tony Scaminaci <email@hidden>
- Date: Sun, 17 Jun 2007 15:02:36 -0500
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.
Tony
On Jun 17, 2007, at 1:46 PM, Michael Smith wrote:
I don't know what versioning scheme Apple uses for the OS (10.4.9)
This is a marketing number.
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.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sbcglobal.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden