apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: file attribute questions
Date Tue, 21 Aug 2001 14:07:49 GMT
From: "Martin Kraemer" <Martin.Kraemer@Fujitsu-Siemens.com>
Sent: Tuesday, August 21, 2001 1:36 AM

> On Mon, Aug 20, 2001 at 12:34:37AM -0500, William A. Rowe, Jr. wrote:
> > > * What is the difference between mtime and ctime? Also, would anybody have
any use for creation date (as opposed to
> > date)? I don't think anything outside the mac world uses creation dates.
> >
> > modified versus created (I think that answers your question.)  And yes, Win32 NTFS
> > and some other systems have ctime.  So does unix.
> Ehmmm.... As a nonWin32 enthusiast may I please interrupt here...

[enthusiast ;-?]

> It *may* be true that the windows API mis-interpreted the commonly
> accepted unix semantics for what the ctime field stands. In ALL unix
> systems, as well as in Linux, it stands for "time of last change to
> the inode".

Thanks for refocusing my understanding.

> <sarcast>
> I certainly do believe that microsoft had a hard time
> to fit that into the existing DOS and Win9x world, but then hey,
> the correct definition is clear.
> </sarcast>

msvcrt's 'struct stat' aside, MS has always spelled out that this is a file
creation time.  We fell in the trap of propagating their bs from their clib.
This will be fixed this week

Thank you for the detailed picture of unix ctime, I'll probably be trying some
other experiments myself to build on this.  Just out of curiosity, What apps
would ever rely on ctime?


View raw message