]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Minor performance improvements and cleanups for "touch".
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Nov 2004 20:44:13 +0000 (20:44 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Nov 2004 20:44:13 +0000 (20:44 +0000)
ChangeLog

index ed1b05a3ca833ed85b21d2083e7637a011a3caf3..975522a73d73021cd7d594ec1c4c775ec4f8aca7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,19 @@
-2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
+2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.0.
 
+       Minor performance improvements and cleanups for "touch".
+       * src/touch.c (posix_date): Remove; not needed as a static var.
+       All uses rewritten.
+       (touch): Use new futimens function to operate more efficiently
+       in some cases.  Don't stat/fstat existing file when
+       (!amtime_now && change_times == (CH_ATIME | CH_MTIME)); the
+       old time stamps aren't needed in that case.
+       (main): change_times is int, not bool.  Simplify test for
+       change_times.
+
+2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
+
        * src/install.c (usage): Avoid usage that runs afoul of Docbook
        translation.  Problem reported by Eric S. Raymond.