]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 9 Aug 2003 18:36:27 +0000 (18:36 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 9 Aug 2003 18:36:27 +0000 (18:36 +0000)
ChangeLog
NEWS
m4/ChangeLog
m4/utimens.m4 [new file with mode: 0644]

index 9e9b55e6838ca169172f1c8c737392acc9d8eb5b..984380c18a12599e075d3918a0c39e16c2732550 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-08-06  Paul Eggert  <eggert@twinsun.com>
+
+       * NEWS: Add support for setting file timestamps to microsecond
+       resolution, on hosts that support this.
+       * src/copy.c, src/cp.c, src/install.c, src/touch.c: Include utimens.h.
+       * src/copy.c (copy_internal):
+       Set file timestamps with utimens, not utime.
+       * src/cp.c (re_protect): Likewise.
+       * src/install.c (change_timestamps): Likewise.
+       * src/touch.c (newtime, touch, main): Likewise.
+
 2003-08-09  Jim Meyering  <jim@meyering.net>
 
        * Version 5.0.91.
diff --git a/NEWS b/NEWS
index f46845cc2045cf81c1b9833721aba023915f43d4..667f902fd3efbbb1780b3b366eec3e2eaeea20ed 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,10 +7,18 @@ GNU coreutils NEWS                                    -*- outline -*-
 
   split accepts a new option -d or --numeric-suffixes.
 
+  cp, install, mv, and touch now preserve microsecond resolution on
+  file timestamps, on platforms that have the 'utimes' system call.
+  Unfortunately there is no system call yet to preserve file
+  timestamps to their full nanosecond resolution; microsecond
+  resolution is the best we can do right now.
+
 ** Bug fixes
 
   `split -a0' works once again.
 
+  `df DIR' used to hang under some conditions on OSF/1 5.1.  Now it doesn't.
+
 
 * Major changes in release 5.0.90:
 
index 3d91317cdcff0dc75d0a1c2d7b1f8d24295facf1..d56535bdc2dd14c193ae89d7ee0f966bc726c5ca 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-06  Paul Eggert  <eggert@twinsun.com>
+
+       * prereq.m4 (jm_PREREQ): Require gl_UTIMENS.
+       * utimens.m4: New file.
+
 2003-08-08  Paul Eggert  <eggert@twinsun.com>
 
        * vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
diff --git a/m4/utimens.m4 b/m4/utimens.m4
new file mode 100644 (file)
index 0000000..1549995
--- /dev/null
@@ -0,0 +1,15 @@
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_UTIMENS],
+[
+  dnl Prerequisites of lib/utimens.c.
+  AC_REQUIRE([gl_TIMESPEC])
+  AC_REQUIRE([jm_CHECK_TYPE_STRUCT_TIMESPEC])
+  AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
+  AC_CHECK_FUNCS_ONCE(utime)
+])