bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib support for st_birthtime


From: Eric Blake
Subject: Re: gnulib support for st_birthtime
Date: Sat, 24 Mar 2007 21:24:55 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 3/24/2007 9:17 PM:
> James Youngman wrote:
>> 2007-03-24  James Youngman  <address@hidden>
>>
>>      * lib/stat-time.h (get_stat_birthtime): New function for
>>           retrieving st_birthtime as provided by UFS2 (hence *BSD).
>>      * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
>>        and its variants.
>>      * /modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
> 
> This is Paul's domain; nevertheless I'd like to mention that native Woe32
> platforms (mingw, msvc, but not Cygwin) implementation of stat() and
> fstat() store the "file creation time" in st_ctime.

Meanwhile, CVS cygwin (will become cygwin 1.7.0) added support for
st_birthtime, which maps to Window's creation time; while for some time
now, cygwin has had st_ctime track change time (NTFS tracks all four file
times, but on other filesystems, cygwin fakes ctime from mtime).  So if
you go with Bruno's suggestion for mingw, it is worth considering also
making st_ctime more reliable for that platform by pointing it to
something more accurate than creation time.

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

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
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

iD8DBQFGBeuH84KuGfSFAYARAvEoAKCUfCYEoV1Z2r6QB5SG9SzUQNThJQCfatli
DIsHyG+PAQQMZ9lUdUhBvYU=
=bGcY
-----END PGP SIGNATURE-----




reply via email to

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