From: Paul Eggert Date: Tue, 23 Nov 2004 20:44:13 +0000 (+0000) Subject: Minor performance improvements and cleanups for "touch". X-Git-Tag: v5.3.0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=398491f38184dc9065d81e91833661ce781d4f8b;p=thirdparty%2Fcoreutils.git Minor performance improvements and cleanups for "touch". --- diff --git a/ChangeLog b/ChangeLog index ed1b05a3ca..975522a73d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,19 @@ -2004-11-20 Paul Eggert +2004-11-23 Paul Eggert * 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 + * src/install.c (usage): Avoid usage that runs afoul of Docbook translation. Problem reported by Eric S. Raymond.