Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Chris January <news-returns@atomice.net>
Newsgroups: gmane.os.cygwin
Subject: Re: how to find the amount of RAM
Date: Mon, 11 Mar 2002 13:38:30 +0000
Lines: 17
Message-ID: <a6ic0l$r50$1@main.gmane.org>
References: <15500.14147.671232.764826@localhost.localdomain> <20020311125928.M29574@cygbert.vinschen.de>
NNTP-Posting-Host: active42.doc.ic.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: main.gmane.org 1015853910 27808 146.169.50.42 (11 Mar 2002 13:38:30 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Mon, 11 Mar 2002 13:38:30 +0000 (UTC)
User-Agent: KNode/0.6.1

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/

