]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Import file time stamp resolution improvements from gnulib.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Sep 2005 07:55:12 +0000 (07:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Sep 2005 07:55:12 +0000 (07:55 +0000)
ChangeLog
lib/ChangeLog
m4/ChangeLog

index 0d13a20ccfca2e5b3f5b6901aa7c483db1422885..169b5e05fb8ae46b682c856c7462b7eb0a5f444c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,26 @@
-2005-09-16  Jim Meyering  <jim@meyering.net>
+2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.1-cvs.
 
+       * src/copy.c: Include stat-time.h.
+       (copy_internal): Use its functions instead of the obsolete
+       TIMESPEC_NS macro.
+       * src/cp.c (re_protect): Likewise.
+       * src/date.c (main): Likewise.
+       * src/du.c (struct duinfo, duinfo_init, duinfo_set, duinfo_add):
+       (show_date, print_size, process_file): Likewise.
+       * src/install.c (change_timestamps): Likewise.
+       * src/ls.c (cmp_ctime, cmp_mtime, cmp_atime, print_long_format):
+       Likewise.
+       * src/pr.c (init_header): Likewise.
+       * src/stat.c (human_time, print_stat): Likewise.
+       * src/tail.c (record_open_fd, tail_forever): Likewise.
+       * src/test.c (get_mtime, binary_operator): Likewise.
+       * src/touch.c (touch, main): Likewise.
+       * src/test.c (get_mtime): Renamed from age_of.  All uses changed.
+
+2005-09-16  Jim Meyering  <jim@meyering.net>
+
        Date no longer needs to allocate virtual memory to do its job,
        so it can no longer fail due to an out-of-memory condition.
 
index 1d2e6729e092f2a3d71a10bdf02b77d8ee21ef7b..c10a91737c8bf52a8b27f98865533aec78ffaf15 100644 (file)
@@ -1,3 +1,18 @@
+2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Import from gnulib.
+       * stat-time.h: New file.
+       * timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
+       (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
+       in a different way.
+       (timespec_cmp): New function.
+       * utimecmp.c: Include stat-time.h.
+       (SYSCALL_RESOLUTION): Depend on whether various struct stat
+       members exist, not on the obsolescent ST_MTIM_NSEC.
+       (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
+
+       * .cppi-disable: Add stat-time.h.
+
 2005-09-16  Jim Meyering  <jim@meyering.net>
 
        * strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
index 8500317924c2c47b6aae67577f784dd7c8624a18..f84959f3225e5898993c3a301c3293dcdc1bf56b 100644 (file)
@@ -1,3 +1,15 @@
+2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * jm-macros.m4 (gl_CHECK_ALL_TYPES): Do not require
+       AC_STRUCT_ST_MTIM_NSEC; it's obsolete.
+       * prereq.m4 (gl_PREREQ): Require gl_STAT_TIME.
+
+       Import from gnulib.
+       * st_mtim.m4: Remove.  Superseded by...
+       * stat-time.m4: New file.
+       * timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
+       Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
+
 2005-09-13  Jim Meyering  <jim@meyering.net>
 
        * autobuild.m4: New file, from autobuild.