From: "Miquel van Smoorenburg" <miquels@cistron.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: [QUESTION] file access time in millisecond?
Date: 12 Feb 2007 10:01:24 GMT [thread overview]
Message-ID: <45d03af4$0$326$e4fe514c@news.xs4all.nl> (raw)
In-Reply-To: <b6a2187b0702120152s1279b931x813413a4234d8dec@mail.gmail.com>
In article <b6a2187b0702120152s1279b931x813413a4234d8dec@mail.gmail.com>,
Jeff Chua <jeff.chua.linux@gmail.com> wrote:
>On 12 Feb 2007 10:02:28 +0100, Andi Kleen <ak@suse.de> 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.
next prev parent reply other threads:[~2007-02-12 10:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-12 7:27 [QUESTION] file access time in millisecond? Jeff Chua
2007-02-12 8:01 ` Arjan van de Ven
2007-02-12 9:24 ` Jeff Chua
2007-02-12 9:02 ` Andi Kleen
2007-02-12 9:52 ` Jeff Chua
2007-02-12 9:56 ` Andi Kleen
2007-02-12 18:55 ` Jeff Chua
2007-02-12 10:01 ` Miquel van Smoorenburg [this message]
2007-02-12 18:58 ` Jeff Chua
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='45d03af4$0$326$e4fe514c@news.xs4all.nl' \
--to=miquels@cistron.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).