Mail Archives: cygwin/2005/03/01/10:38:24
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 AT cygwin DOT 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/
- Raw text -