1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00
Jim Meyering 9e2756872d Make ls -R detect directory cycles.
Include hash.h, same.h, and xalloc.h.
(INITIAL_TABLE_SIZE, LOOP_DETECT): Define.
(active_dir_set): New global.
(struct dev_ino): Declare.
(dev_ino_hash, dev_ino_compare, dev_ino_free): New functions.
(visit_dir, free_pending_ent): New functions.
(main): Initialize the active_dir_set hash table, if necessary.
Don't confuse a marker entry with a real one.
Detect loops.
Manage the set of active directories.
Free the hash table.
(queue_directory): Add a new parameter.
Ensure that we set the new dev/ino members for each enqueued directory.
Update all callers.
(print_dir): Don't confuse a marker entry with a real one.
(extract_dirs_from_files): Insert a marker entry before inserting
the entries for subdirectories.
2001-11-01 11:31:19 +00:00
2001-10-21 12:33:26 +00:00
.
2001-10-22 08:02:38 +00:00
2001-10-21 07:49:37 +00:00
2001-10-28 09:40:57 +00:00
2001-11-01 11:31:19 +00:00
2001-11-01 10:56:41 +00:00
2001-10-28 08:20:01 +00:00
S
Description
These are the GNU core utilities. This package is the union of the GNU fileutils, sh-utils, and textutils packages.
99 MiB
Languages
C 56.5%
Shell 27.6%
Perl 11.6%
Makefile 2.2%
M4 0.9%
Other 1.2%