]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:31:57 +0000 (21:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:31:57 +0000 (21:31 +0000)
old/fileutils/ChangeLog

index 5758fe5bf3a284431442ac1e7ad21c33f7d2ee01..e6f16adc00b3afe958a329365a2027e3741bcab1 100644 (file)
@@ -2,15 +2,41 @@
 
        * Version 4.1.1.
 
+       Convert du.c to use the functions in lib/hash.c, not private,
+       slightly-modified copies of those that used to be in cp-hash.c.
+
+       * src/du.c (struct entry) [coll_link]: Remove member.
+       (struct htab): Remove.
+       (hash_reset, hash_init, hash_insert2, hash_insert): Remove functions.
+
+       * src/du.c: Include hash.h and same.h.
+       (htab): Change type of global to `struct hash';
+       (entry_hash, entry_compare, hash_ins): New functions.
+       (count_entry): Use hash_ins instead of hash_insert.
+
+2001-10-06  Jim Meyering  <meyering@lucent.com>
+
+       Rewrite cp-hash.c to use the functions in lib/hash.c.
+
+       * src/cp-hash.c (hash_init): Die if hash_initialize fails.
+
        * src/cp-hash.c: Rewrite to use the functions in lib/hash.c.
        * src/cp-hash.h: Update prototype for hash_init.
        * src/mv.c (do_move): Reflect that hash_init now takes no arguments.
        * src/install.c (main): Likewise.
        * src/cp.c (main): Likewise.
 
+2001-10-06  Jim Meyering  <meyering@lucent.com>
+
        * src/copy.c (record_dest): Avoid a small leak.
-       (copy_internal): Call remember_copied only for if the source file
-       has 1 < st_nlink, or if it's a directory.
+
+2001-10-06  Jim Meyering  <meyering@lucent.com>
+
+       This decreases the memory footprint a little, when copying
+       hierarchies containing many files.
+
+       * src/copy.c (copy_internal): Call remember_copied only if
+       the source file has 1 < st_nlink, or if it's a directory.
        Now that EARLIER_FILE is set conditionally, initialize it to NULL.
 
        * tests/mv/childproof: Redirect stderr on one test.