]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Use the more precise algorithm of GNU "make" to decide whether
authorJim Meyering <jim@meyering.net>
Wed, 3 Jan 2001 21:02:08 +0000 (21:02 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 Jan 2001 21:02:08 +0000 (21:02 +0000)
commit550edf90b21ef96fccc4e91bf799bf2d6df15053
treee2bd29c572c9028a1be57962313bb9be8e2106c9
parentf3aa9892056918da39e6873f051d4b02523d3209
Use the more precise algorithm of GNU "make" to decide whether
a file is in the future, by looking at high-resolution time
stamps if available.

(TIMESPEC_NS): New macro.
(current_time): Initialize to the minimum value.
(current_time_ns): New var.
(main): Do not bother to initialize current_time;
it's no longer needed.
(get_current_time): New function.
(print_long_format): Use it when a file appears to be in the future.
Get the nanoseconds of the file's time stamp, if available,
and use that to decide whether the file appears to be in the future.
src/ls.c