This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: mmap() and gcc precompiled headers
On Thu, Jul 03, 2003 at 11:47:28AM +0200, Corinna Vinschen wrote:
>Do you mean something like this:
>
> If addr is given, check if it's 64K aligned. If not, align and
> raise the memory requirement accordingly. Call MapViewOfFileEx
> with the aligned address. If it works, return the addr given as
> parameter, otherwise return MapViewOfFileEx(NULL).
How about, instead, just use the address and if it fails and is not
MAP_FIXED, use MapViewOfFileEx without the address?
cgf
--
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/