From 555bbf598d1f5508ea266bfd2ba6978011be8435 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 16 Sep 2005 07:55:12 +0000 Subject: Import file time stamp resolution improvements from gnulib. --- ChangeLog | 21 ++++++++++++++++++++- lib/ChangeLog | 15 +++++++++++++++ m4/ChangeLog | 12 ++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0d13a20cc..169b5e05f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,26 @@ -2005-09-16 Jim Meyering +2005-09-16 Paul Eggert * 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 + 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 + + 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 * 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 + + * 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 * autobuild.m4: New file, from autobuild. -- cgit v1.2.3-54-g00ecf