This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: how to find the amount of RAM
Corinna Vinschen wrote:
> On Sun, Mar 10, 2002 at 08:49:07PM -0800, Stephen Weeks wrote:
>>
>> Is there a way to find the amount of RAM from within Cygwin? I
>> tried sysconf(_SC_PHYS_PAGES) but that returns -1. The only other
>> thing that I saw was a post on this list
>>
>> http://sources.redhat.com/ml/cygwin/2001-11/msg00849.html
>>
>> but that never received an answer. Any ideas? Thanks.
>
> _SC_PHYS_PAGES is only supported on NT/2K/XP.
In which case you need to use GlobalMemoryStatus instead.
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/