summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-16 07:55:12 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-16 07:55:12 +0000
commit555bbf598d1f5508ea266bfd2ba6978011be8435 (patch)
tree916f2f76b3bf793de3d53a85bc664149fb18b91d
parent60da98e144b59a955f55baac07dbca256cfe3d3f (diff)
downloadcoreutils-555bbf598d1f5508ea266bfd2ba6978011be8435.tar.xz
Import file time stamp resolution improvements from gnulib.
-rw-r--r--ChangeLog21
-rw-r--r--lib/ChangeLog15
-rw-r--r--m4/ChangeLog12
3 files changed, 47 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d13a20cc..169b5e05f 100644
--- 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.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 1d2e6729e..c10a91737 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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:
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 850031792..f84959f32 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -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.