Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: System information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System information



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.



References: 
 >Re: System information (From: Lindsey Spratt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.