delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/12/07:49:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 12 Sep 2000 15:47:18 +0400
From: Egor Duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: Egor Duda <cygwin AT sources DOT redhat DOT com>
Organization: DEO
X-Priority: 3 (Normal)
Message-ID: <6711915193.20000912154718@logos-m.ru>
To: cygwin AT sources DOT redhat DOT com
CC: Dr DOT Volker DOT Zell AT oracle DOT com
Subject: Re: I'm new in cygwin: how to mmap?
Mime-Version: 1.0

Hi!

"Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com> wrote:

>>>>>> "Corinna" == Corinna Vinschen <vinschen AT cygnus DOT com> writes:

>>     Corinna> Try using mmap().
> 
> Just curious. Whenever a configure script tries to detect a working mmap I get:
> 
>   checking for working mmap... no
> 
> Is this the expected behaviour. I'm using latest 1.1.4

cygwin  mmap  doesn't "work" as unix-world expects it should. on unix,
if  you  want  to  mmap  with  MAP_FIXED flag, you must supply address
aligned  to the page boundary, i.e. address should be x*pagesize. page
size on  windows  is  4096  and  test  program, which configure script
runs,   aligns    address    according  to  it. windows, otoh, require
that address should  be  aligned  to  "allocation  granularity"  which
is   64k.  if supplied  address  doesn't  match  this, and probability
that  it  won't  match   is   15/16, then windows fails to maf on this
address  with  error  1132   --   "The base address or the file offset
specified does not have the proper alignment."

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019