Lindsey,
Thank you for the help. Sysctl() allows me to retrieve part of the
information I need (memory, virtual memory, cpu). Networking related
information I need (interfaces) can be extracted as usual using ioctl()
calls, I was thinking instead of dedicated system calls under OS X.
Still missing some details, like cpu version and features (e.g. Altivec).
I appreciate your help, however porting to mac OS X is not immediate :-(
Massimo
On 3/26/03 7:08 PM, "Lindsey Spratt" <email@hidden> wrote:
>
> On Friday, March 21, 2003, at 05:25 AM, Massimo Cafaro wrote:
>
>> Hi,
>>
>> I need to retrieve the following information:
>>
>> MEMORY
>>
>> Total number of memory mbytes (ram)
>> Number of free memory mbytes (ram)
>> Total number of virtual memory mbytes
>> Number of free virtual memory mbytes
>
> I think sysctl() provides this information.
>
> Lindsey Spratt
> http://homepage.mac.com/lspratt
>
>
>
--
*********************************************************************
Massimo Cafaro, Ph.D. Voice +39 0832 297284
Assistant Professor Fax +39 0832 297279
University of Lecce, Italy e-mail email@hidden
Faculty of Engineering email@hidden
Via per Monteroni Web http://sara.unile.it/~cafaro
73100 Lecce, Italy
*********************************************************************
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.