Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject: Re: more ctime bugs
Date: Sun, 13 Feb 2005 04:30:44 +0000 (UTC)
Lines: 15
Message-ID: <loom.20050213T052458-195@post.gmane.org>
References: <020920052127.27398.420A803A0009BD7500006B0622007507440A050E040D0C079D0A@comcast.net> <20050211093508.GB27256@cygbert.vinschen.de> <420CBCE6.60603@byu.net> <20050211142542.GE2597@cygbert.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.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@m.gmane.org
X-MailScanner-To: cygwin@cygwin.com
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> 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/

