Re: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V3cJnuCzpvxmKCgjNZv6gXqikJhhV6NYfyzIhbYt1wsjMG27eUfm50YO+CVfSY9YzcoeTsJ9uAEdipFfDQN7wKDXh916L2S6ba2oBONW2MppMvVEVigVIKrRuMBRUgvhzFMOr+92NK9xU2bW9kKf6CrHmj1rxq+Qw65aS+Zh/AU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sddviuu97bRaCslVI4HpGzdOnYmPeDZk8YKVFUtdCi3bt17Ayf8lJTC8ORS+XBef2Gn+drrCEKhsh8U9P1DZX9KrJHtU7OLE0Us2Pj8MZgWVmOk01pdxfXj86ggykMJf/mBOWy/TDc2X0pOyKoOrM7Px0udvi0dmqtUTcAfa/BY= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 7/9/07, Terry Lambert <tlambert@apple.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Frysinger