X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Authority-Analysis: v=1.0 c=1 a=uZvujYp8AAAA:8 a=xe8BsctaAAAA:8 a=TOBY3Ploi6EIkGm9SRcA:9 a=6EZ2vkn43p4viVlF92kA:7 a=xsmJT2tT0DbNmnAZsXSiaR4Un6AA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 Message-ID: <47FAD803.40706@byu.net> Date: Mon, 07 Apr 2008 20:27:15 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mtime question References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Manuel Gonzalez Montoya on 4/7/2008 2:51 PM: | Is the file's mtime supposed to change on every write to the file?. No - the file's mtime is only supposed to be scheduled for update on every write to a file, where the update period can be indefinitely into the future, with the caveat that close() and stat() trigger any scheduled updates to happen regardless of when updates are normally scheduled. See http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html, section 4.7: An implementation may update fields that are marked for update immediately, or it may update such fields periodically. At an update point in time, any marked fields shall be set to the current time and the update marks shall be cleared. All fields that are marked for update shall be updated when the file ceases to be open by any process, or when a stat(), fstat(), or lstat() is performed on the file. Other times at which updates are done are unspecified. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkf62AMACgkQ84KuGfSFAYAHlACgkxjlUFhKQOTqwBiCncUjw8DE qIkAnRptQjJYwbWZV+7q2oCkhXbeSTXI =JxIF -----END PGP SIGNATURE----- -- 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/