Re: hw.cpufamily vs ASP vs machine.h
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Invoke the system_profiler tool and parse its output; use something like "system_profiler -xml SPHardwareDataType". i am unable to find any API called "system_profiler()" that I can call from my C++ (carbon) program. are you thinking i need to call system("system_profiler -xml SPHardwareDataType") ? if so, where does the output go? how do i get it into a memory buffer? am i supposed to pipe it to a temp file then read that file to parse it? _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
David M. Cotter