Re: System call for OS version info
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:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=Dv10M8dmaGT013th1SdztrL/pQSAHbsc6wNYNRibVU5d4UjoXbjPrYxTe+41q+eGWgW/JU5rF8zDGVhcu40crJ9zIUIROp8PtE4aONduTbZVmbdi9SfWaKsA+gU1unWlr6VlcjKU2LxB9GkTYxYR+F/2u3q2LshXmyOB7gEZziE= ; OK, now I see it, thanks. Tony On Oct 15, 2006, at 1:41 PM, plumber Idraulico wrote: better look /*pure darwin http://plumber.gnu-darwin.org/home/pub/Pictures/system_info_x86.png /*osx on top http://plumber.gnu-darwin.org/home/pub/Pictures/system_info.png Tony On Oct 15, 2006, at 1:04 PM, plumber Idraulico wrote: http://plumber.gnu-darwin.org/home/ SYSTEM_INFO (1) Reports operating system information and hardware configuration. take a look on src -plum On Oct 15, 2006, at 6:53 PM, Tony Scaminaci wrote: $ sw_vers ProductName: Mac OS X ProductVersion: 10.4.8 BuildVersion: 8L127 All info is available in the following files: /System/Library/CoreServices/ServerVersion.plist (if it exists) /System/Library/CoreServices/SystemVersion.plist -- Rui Paulo _______________________________________________ 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... I looked through your code and noted that the headers include CoreFoundation which won't compile for 64-bit archs. I'll go ahead and parse /System/Library/CoreServices/SystemVersion.plist instead. Thanks everyone for your inputs. I already have the kernel info. I'm looking for MacOS X system/ build info but thanks anyway. 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. _______________________________________________ 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