Re: [QUESTION] file access time in millisecond?

From: Miquel van Smoorenburg
Date: Mon Feb 12 2007 - 05:15:37 EST


In article <b6a2187b0702120152s1279b931x813413a4234d8dec@xxxxxxxxxxxxxx>,
Jeff Chua <jeff.chua.linux@xxxxxxxxx> wrote:
>On 12 Feb 2007 10:02:28 +0100, Andi Kleen <ak@xxxxxxx> wrote:
>
>> > stat() returns time in seconds,
>>
>> Not correct (at least for glibc stat). It supports nanoseconds these days,
>> although not all file systems (including ext3) do yet.
>
>I'm using gcc-3.4.5, and glibc-2.3.6. Don't think 2.3.6 stat() support
>that ... at least the man page doesn't indicate so.

Check out /usr/include/bits/stat.h

My glibc-2.3.2 (debian stable) has the nanoseconds stuff right there,
even though it isn't mentioned in the stat.2 manpage or the info pages.

Mike.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/