[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for st_birthtime

From: Eric Blake
Subject: Re: Support for st_birthtime
Date: Sun, 25 Mar 2007 08:20:04 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070221 Thunderbird/ Mnenhy/

Hash: SHA1

According to James Youngman on 3/25/2007 4:13 AM:
> On 3/25/07, James Youngman <address@hidden> wrote:
>> > st_birthtime (for seconds), or st_birthtim (for struct timespec)
>> > http://cygwin.com/ml/cygwin-cvs/2007-q1/msg00122.html
> I forgot to ask, what happens (from the user program's point of view)
> if the file being examined has no creation time information?   I think
> MSDOS doesn't record it, for example.  Many NFS filesystems don't
> offer it either.

I haven't tested, partly because it is such a new feature of cygwin, and
there are so few existing programs that even try to expose st_birthtime to
the user.  MSDOS (meaning FAT) actually DOES record birthtime (it only
records birthtime, mtime, and atime, and lacks POSIX ctime; but outside of
cygwin, Microsoft mistakenly treats birthtime as their ctime in stat).
And part of the joy of it being a CVS development snapshot is that I can
give some feedback back to the cygwin developers - what would you rather
have stat do when btime is not available for a given file?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]