Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 1 Mar 2005 16:37:04 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mmap and MAP_FIXED Message-ID: <20050301153704.GZ18314@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <421E60A0 DOT 8000102 AT stambulchik DOT net> <20050225120045 DOT GO18314 AT cygbert DOT vinschen DOT de> <421F2987 DOT 3090307 AT byu DOT net> <20050225151801 DOT GT18314 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050225151801.GT18314@cygbert.vinschen.de> User-Agent: Mutt/1.4.2i 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/