bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-5.1.2 and the stat command


From: Jim Meyering
Subject: Re: coreutils-5.1.2 and the stat command
Date: Thu, 05 Feb 2004 10:35:23 +0100

Paul Eggert <address@hidden> wrote:
> "Nelson H. F. Beebe" <address@hidden> writes:
>
>> I suspect that the omission of the nanoseconds values in the
>> timestamps reported by GNU stat is simply an oversight that can be
>> easily rectified, and should be.
>
> Thanks for reporting that.  The following patch works for me on Solaris 8.
>
> 2004-01-31  Paul Eggert  <address@hidden>
>
>       * src/stat.c: Include timespec.h.
>       (human_time): Accept nanoseconds arg.  Also, accept time
>       rather than pointer-to-const-time, for clarity.  All callers changed.
>       (print_stat): Pass nanoseconds arg to human_time.
>       Problem reported by Nelson H. F. Beebe.

Thanks.
I've merged this part (had already done the rest).

>       (human_time): ...  Also, accept time
>       rather than pointer-to-const-time, for clarity.  All callers changed.

Also, I moved all of the related definitions from system.h to timespec.h:

        * timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
        (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
        From coreutils' system.h.




reply via email to

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