Lines Matching refs:dp
132 dirent* dp; in tryShortenProcessName() local
133 while ((dp = readdir(dir.get())) != nullptr) { in tryShortenProcessName()
134 if (dp->d_type != DT_DIR) continue; in tryShortenProcessName()
135 if (dp->d_name[0] == '.') continue; in tryShortenProcessName()
137 std::fstream fs(kTasks + dp->d_name + "/comm"); in tryShortenProcessName()
139 ALOGI("Could not rename process, failed read comm for %s.", dp->d_name); in tryShortenProcessName()
281 dirent* dp; in findFiles() local
282 while ((dp = readdir(dir.get())) != nullptr) { in findFiles()
283 std::string name = dp->d_name; in findFiles()
342 dirent* dp; in fetchPidsForPassthroughLibraries() local
343 while ((dp = readdir(dir.get())) != nullptr) { in fetchPidsForPassthroughLibraries()
344 pid_t pid = strtoll(dp->d_name, nullptr, 0); in fetchPidsForPassthroughLibraries()
346 std::string mapsPath = proc + dp->d_name + "/maps"; in fetchPidsForPassthroughLibraries()