1.7.0 CVS mmap failure

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jan 9 15:48:00 GMT 2007


On Jan 9 09:33, Brian Ford wrote:
> 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 ;-).

Agreed.
Corinna
-- 
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /