Lines Matching refs:dp
426 struct dirent *dp; in ReadDirectoryEntriesFromDirectoryPath() local
439 auto child_path = [&] { return dirpath + "/" + dp->d_name; }; in ReadDirectoryEntriesFromDirectoryPath()
443 if ((dp = system_call->readdir(dirp)) != nullptr) { in ReadDirectoryEntriesFromDirectoryPath()
444 if (dp->d_type == DT_DIR) { in ReadDirectoryEntriesFromDirectoryPath()
445 if (strcmp(".", dp->d_name) == 0 || strcmp("..", dp->d_name) == 0) { in ReadDirectoryEntriesFromDirectoryPath()
446 LOG(VERBOSE) << "Skip self/parent: " << dp->d_name; in ReadDirectoryEntriesFromDirectoryPath()
451 << ", ino: " << dp->d_ino << ", type: " << dp->d_type; in ReadDirectoryEntriesFromDirectoryPath()
453 static_cast<ino_t>(dp->d_ino), in ReadDirectoryEntriesFromDirectoryPath()
454 dp->d_type}); in ReadDirectoryEntriesFromDirectoryPath()
455 } else if (dp->d_type == DT_UNKNOWN) { in ReadDirectoryEntriesFromDirectoryPath()
460 } else if (dp->d_type == DT_LNK || dp->d_type == DT_REG) { in ReadDirectoryEntriesFromDirectoryPath()
463 static_cast<ino_t>(dp->d_ino), in ReadDirectoryEntriesFromDirectoryPath()
464 dp->d_type}); in ReadDirectoryEntriesFromDirectoryPath()
467 LOG(VERBOSE) << "Skip DT entry of type: " << dp->d_type << " " << child_path(); in ReadDirectoryEntriesFromDirectoryPath()
474 } while (dp != nullptr); in ReadDirectoryEntriesFromDirectoryPath()