Re: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
Re: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
- Subject: Re: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
- From: "Mike Frysinger" <email@hidden>
- Date: Tue, 10 Jul 2007 13:32:33 -0500
On 7/9/07, Terry Lambert <email@hidden> wrote:
Maybe you could get them to add it as a test case for the test suite,
if they (specifically, The Austin Group, actually) agreed with your
interpretation of the standard.
so the answer to my query on the Austin Group mailing list is that the
way ive interpreted the standard is the correct interpretation ...
POSIX conforming systems must:
- update st_mtime when opened with O_TRUNC regardless of the size of
the file before hand
- make sure st_ctime/st_mtime are properly available at the next
relevant point in time (like when calling stat() or fstat())
i'll look into getting a test added to the POSIX testsuite
-mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden