Lines Matching defs:dir
204 find_dir_entry(DIR *dir, const char *path, NodeRef ref, string &name,
209 while (dirent *entry = readdir(dir)) {
242 // open dir
243 DIR *dir = opendir(path);
244 if (!dir)
247 status_t error = find_dir_entry(dir, path, ref, name, skipDot);
249 // close dir
250 closedir(dir);
262 // stat the parent dir
267 // root dir?
280 // recurse to get the parent dir path, if found
297 // stat() the dir
314 // found a slash: decompose into dir path and leaf name
317 // slash is at the end: the whole path is a dir name
325 // path contains no slash, so it is a path relative to the current dir
334 // normalize the dir path
366 // get the dir path
510 // open the dir
511 DIR *dir = opendir(path);
512 if (!dir)
518 closedir(dir);
523 closedir(dir);
527 // cache dir path
532 DirectoryDescriptor *descriptor = new DirectoryDescriptor(dir, ref);
613 entry = fs_read_attr_dir(descriptor->dir);
615 entry = readdir(descriptor->dir);
641 fs_rewind_attr_dir(descriptor->dir);
643 rewinddir(descriptor->dir);