Lines Matching defs:list
10 * This utility will list a directory's files.
52 #include "list.h"
64 struct ntfs_list_head list;
79 struct ntfs_list_head list;
83 /* The list of sub-dirs is like a "horizontal" tree. The root of
84 * the tree is opts.path, but it is not part of the list because
85 * that's not necessary. The rules of the list are (in order of
95 * then the list will be:
99 * into the list.
152 * usage - Print a list of the parameters to the program
154 * Print a list of the parameters and options for the program.
168 " -p, --path PATH Directory whose contents to list\n"
170 " -R, --recursive Recursively list subdirectories\n"
340 * free_dirs - walk the list of dir's and free each of them
341 * @dir_list: the ntfs_list_head of any entry in the list
353 tofree = ntfs_list_entry(walker, struct dir, list);
361 * readdir_recursive - list a directory and sub-directories encountered
362 * @ni: ntfs inode of the directory to list
367 * then list each of its sub-directories.
376 /* list of dirs to "ls" recursively */
378 .list = NTFS_LIST_HEAD_INIT(dirs.list),
385 .list = NTFS_LIST_HEAD_INIT(paths.list),
401 if (ntfs_list_empty(&dirs.list)) {
403 ntfs_list_add(&base_comp.list, &paths.list);
404 dir_list_insert_pos = &dirs.list;
413 ntfs_list_add_tail(&comp.list, &paths.list);
415 /* for each of ni's sub-dirs: list in this iteration, then
417 ntfs_list_for_each(dir_walker, &dirs.list) {
422 subdir = ntfs_list_entry(dir_walker, struct dir, list);
429 dir_list_insert_pos = &dirs.list;
447 ntfs_list_for_each(comp_walker, &paths.list) {
450 struct path_component, list);
469 ntfs_list_del(&comp.list);
477 free_dirs(&dirs.list);
613 ntfs_list_add(&dir->list, dir_list_insert_pos);
614 dir_list_insert_pos = &dir->list;
669 * list it. If it is a directory, list its contents.