On Mon, Oct 14, 2002 at 01:38:54PM -0700, Steven Wagner ([EMAIL PROTECTED]) wrote: > Unfortunately, now you've got me curious so I'm looking into it a bit. :) > It looks like you would mix up some sysctl() calls for the basic system > attributes (CPU speed, hostname, kernel version, etc.) with some calls to > kvm for the kernel statistics like memory usage and CPU cycles. From that > description, feel free to copy large chunks of code from my solaris.c and > irix.c implementations if you're looking to just get something to compile > (it might work...).
I was looking at OS X stuff today, too. (See earlier in the thread) I got initial "just make it compile with stubs" code put in and just finished some simple "rip the easy stuff from FreeBSD's machine.c" code: we can now report: num cpus cpu MHz total memory machine type OS name OS release Load 1,5,15 proc total uptime time mtu I will (and if anybody else smarter than I wants to crack at it, please do) track down what info I have to pull out of KVM shortly. But there's a start now in CVS, at least.. -- Preston Smith <[EMAIL PROTECTED]> UNIX Analyst Purdue University Physics Computer Network GPG Fingerprint: 6D27 5DAA F58D C42B 7A6B 8F48 04E4 2465 F353 03F6
