summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--NEWS8
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/utimens.m415
4 files changed, 39 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e9b55e68..984380c18 100644
--- 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 f46845cc2..667f902fd 100644
--- 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:
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 3d91317cd..d56535bdc 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -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
index 000000000..154999505
--- /dev/null
+++ b/m4/utimens.m4
@@ -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)
+])