This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mmap and MAP_FIXED
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 1 Mar 2005 16:37:04 +0100
- Subject: Re: mmap and MAP_FIXED
- References: <421E60A0.8000102@stambulchik.net> <20050225120045.GO18314@cygbert.vinschen.de> <421F2987.3090307@byu.net> <20050225151801.GT18314@cygbert.vinschen.de>
- Reply-to: cygwin at cygwin dot com
On Feb 25 16:18, Corinna Vinschen wrote:
> On Feb 25 06:35, Eric Blake wrote:
> > While you are at it, POSIX requires an update to underlying file's ctime
> > sometime between mmap(... MAP_SHARED, PROT_WRITE ...) and the
> > corresponding munmap() or msync() if the mapped region was written to. If
> > Windows correctly updates mtime on a mapped file, then one possible way to
> > do this might be: when munmap()ing, if mtime is newer than ctime (but less
> > than or equal to now), adjust ctime to match mtime.
>
> Well... no, not now. [...]
I'm sorry, but it looks like that won't work at all. I've just tested how
the filetime behaves when changing the mapped area of a file mapped
MAP_SHARED. Windows does change the file, but it does not change mtime.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/