bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] copying file timestamps (was: utimes.m4)


From: Paul Eggert
Subject: Re: [Bug-gnulib] copying file timestamps (was: utimes.m4)
Date: 02 Sep 2003 12:33:37 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Bruno Haible <address@hidden> writes:

> since utimes() can set the file's times with microsecond resolution,
> what is the portable way to _get_ a file's times with more than 1 second
> resolution?

It's supposed to be AC_STRUCT_ST_MTIM_NSEC, which is in the timespec
module.  However, this macro currently suppots only glibc with
__USE_MISC and Solaris.  (It also supports Solaris 2.6's _tv_nsec.)
The macro would need an improved interface to support glibc without
__USE_MISC, or FreeBSD.

The name of the macro is a bit misleading, as utilities also use it
retrieve the nanoseconds part of atime and ctime.




reply via email to

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