Lines Matching refs:dir
91 fsnode_sort(fsnode *first, const char *root, const char *dir)
99 __func__, root, dir, tmp->name);
117 __func__, root, dir, tmp->name);
124 * build a tree of fsnodes from `root' and `dir', with a parent
131 walk_dir(const char *root, const char *dir, fsnode *parent, fsnode *join,
143 assert(dir != NULL);
145 len = snprintf(path, sizeof(path), "%s/%s", root, dir);
179 __func__, root, dir, name);
256 cur = create_fsnode(root, dir, name, &stbuf);
309 err(EXIT_FAILURE, "Can't closedir `%s/%s'", root, dir);
311 return fsnode_sort(first, root, dir);
396 * at dir,parent. parameters in parent on equivalent types
401 apply_specfile(const char *specfile, const char *dir, fsnode *parent, int speconly)
411 printf("%s: %s, %s %p\n", __func__, specfile, dir, parent);
430 apply_specdir(dir, root, parent, speconly);
439 apply_specdir(const char *dir, NODE *specnode, fsnode *dirnode, int speconly)
449 printf("%s: %s %p %p\n", __func__, dir, specnode, dirnode);
453 dir, specnode->name);
456 dir, dirnode->name);
458 apply_specentry(dir, specnode, dirnode);
461 /* XXX inefficient. This is O^2 in each dir and it would
478 dir, curfsnode->name);
483 __func__, dir, curfsnode->name,
507 dir, curnode->name) >= sizeof(path))
568 apply_specentry(dir, curnode, curfsnode);
580 apply_specentry(const char *dir, NODE *specnode, fsnode *dirnode)
589 dir, specnode->name, inode_type(nodetoino(specnode->type)),
593 printf("%s: %s/%s\n", dir, __func__, dirnode->name);