summaryrefslogtreecommitdiff
path: root/ABOUT-NLS
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-01 11:31:19 +0000
committerJim Meyering <jim@meyering.net>2001-11-01 11:31:19 +0000
commit9e2756872d0467a4d8ced355dba65ef4e3c5fce3 (patch)
treee5c685b551edb2f1b392556eee14133ef2fbe3b1 /ABOUT-NLS
parentc1c9a579e3d1b311650d989dcc95f7ed1e655ad4 (diff)
downloadcoreutils-9e2756872d0467a4d8ced355dba65ef4e3c5fce3.tar.xz
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.
Diffstat (limited to 'ABOUT-NLS')
0 files changed, 0 insertions, 0 deletions