System call for OS version info
System call for OS version info
- Subject: System call for OS version info
- From: Tony Scaminaci <email@hidden>
- Date: Sun, 15 Oct 2006 12:53:04 -0500
Is there a low-level function call for obtaining the same OS info as
the unix utility "sw_vers" returns (see below)? I've been browsing
the kernel-level sysctl calls but I don't see anything promising. Or
would it be better to just do a system invoke of "sw_vers" and parse
the arguments for the MacOS version info? Whatever I end up using
must work on all 64-bit processors.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.4.8
BuildVersion: 8L127
Thanks,
Tony
_______________________________________________
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