X-Spam-Check-By: sourceware.org Date: Tue, 9 Jan 2007 09:33:03 -0600 From: Brian Ford Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: 1.7.0 CVS mmap failure In-Reply-To: <20070109141544.GE19638@ns1.anodized.com> Message-ID: References: <20070105182234 DOT GC12776 AT calimero DOT vinschen DOT de> <20070105192302 DOT GD12776 AT calimero DOT vinschen DOT de> <20070106154519 DOT GA19640 AT ns1 DOT anodized DOT com> <20070107105844 DOT GB10586 AT calimero DOT vinschen DOT de> <20070109090415 DOT GA19638 AT ns1 DOT anodized DOT com> <20070109115643 DOT GD23638 AT calimero DOT vinschen DOT de> <20070109141544 DOT GE19638 AT ns1 DOT anodized DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, 9 Jan 2007, Christopher Layne wrote: > extern "C" size_t > getpagesize () > { > if (!system_info.dwPageSize) > GetSystemInfo (&system_info); > return (size_t) system_info.dwAllocationGranularity; > } > > size_t > getsystempagesize () > { > if (!system_info.dwAllocationGranularity) > GetSystemInfo (&system_info); > return (size_t) system_info.dwPageSize; > } Um..., don't these functions look backward to anyone else in that the test for local cache initialization is not what gets returned. I know it really doesn't matter functionally, but it sure looks confusing ;-). -- Brian Ford Lead Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained crew... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/