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 To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: more ctime bugs Date: Sun, 13 Feb 2005 04:30:44 +0000 (UTC) Lines: 15 Message-ID: References: <020920052127 DOT 27398 DOT 420A803A0009BD7500006B0622007507440A050E040D0C079D0A AT comcast DOT net> <20050211093508 DOT GB27256 AT cygbert DOT vinschen DOT de> <420CBCE6 DOT 60603 AT byu DOT net> <20050211142542 DOT GE2597 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.10.254.137 (Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)) X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: goc-cygwin AT m DOT gmane DOT org X-MailScanner-To: cygwin AT cygwin DOT com X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > I'll update Cygwin to set ctime in close and link. Link > is special since it doesn't involve using any explicit file descriptors, > so it's a bit unclear where to set the flags inside Cygwin to get that > right. Using close() seems a good way to have ctime set for write() > as well as open(O_TRUNC). I see the new has_changed flag in the 20050211 snapshot. But you still have to add a call to touch_ctime() within the stat() family of calls if has_changed is set, in order to comply with the required semantics; stat and lstat are not allowed to return out-of-date timestamps. -- Eric Blake -- 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/