[AFS3-std] Re: A call for consensus on draft-deason-afs3-type-time-02

Russ Allbery rra@stanford.edu
Fri, 29 Jul 2011 11:40:58 -0700


Russ Allbery <rra@stanford.edu> writes:
> Andrew Deason <adeason@sinenomine.net> writes:

>> This isn't really an analagous example, since as far as I know, you
>> can't actually manipulate the ns part of that timestamp, as there is no
>> interface on Linux to set or get a timestamp with nanosecond
>> resolution.

> utimensat(2) as of Linux 2.6.22.

It took a bit longer to find the way that you read them, since it's only
in X/Open 2008, but they're read via the st_atim, st_mtim, and st_ctim
members of struct stat, which are of time struct timespec and are
similarly are filled in by recent versions of Linux.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>