Lines Matching defs:dir
204 find_dir_entry(DIR *dir, const char *path, NodeRef ref, string &name,
209 while (dirent *entry = readdir(dir)) {
243 // open dir
244 DIR *dir = opendir(path);
245 if (!dir)
248 status_t error = find_dir_entry(dir, path, ref, name, skipDot);
250 // close dir
251 closedir(dir);
311 // found a slash: decompose into dir path and leaf name
314 // slash is at the end: the whole path is a dir name
321 // path contains no slash, so it is a path relative to the current dir
330 // normalize the dir path
362 // get the dir path
518 // open the dir
519 DIR *dir = opendir(path);
520 if (!dir)
526 closedir(dir);
531 closedir(dir);
535 // cache dir path
540 DirectoryDescriptor *descriptor = new DirectoryDescriptor(dir, ref);
622 entry = fs_read_attr_dir(descriptor->dir);
624 entry = readdir(descriptor->dir);
650 fs_rewind_attr_dir(descriptor->dir);
652 rewinddir(descriptor->dir);