Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 7 of 7) sorted by relevance

/base/hiviewdfx/faultloggerd/common/dfxutil/
Ddfx_util.cpp122 struct dirent *ent; in ReadDirFiles() local
123 while ((ent = readdir(dir)) != nullptr) { in ReadDirFiles()
125 if ((strcmp(ent->d_name, ".") == 0) || (strcmp(ent->d_name, "..") == 0)) { in ReadDirFiles()
128 files.emplace_back(std::string(ent->d_name)); in ReadDirFiles()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_ability.cpp179 for (auto* ent = readdir(dir); ent != nullptr; ent = readdir(dir)) { in GetFileInfoUnderDir() local
180 … if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0 || ent->d_type == DT_DIR) { in GetFileInfoUnderDir()
183 std::string filePath(dirPath + ent->d_name); in GetFileInfoUnderDir()
188 fileInfos.emplace_back(ent->d_name, statBuf.st_mtime, statBuf.st_size); in GetFileInfoUnderDir()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
Dfile_util.cpp114 struct dirent* ent = nullptr; in GetDirFiles() local
115 while ((ent = readdir(dirPtr)) != nullptr) { in GetDirFiles()
116 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in GetDirFiles()
119 std::string filePath = GetFilePathByDir(dir, ent->d_name); in GetDirFiles()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_common_utils.cpp45 for (struct dirent *ent = readdir(dir); ent != nullptr; ent = readdir(dir)) { in GetSubNodes() local
46 std::string childNode = ent->d_name; in GetSubNodes()
77 for (struct dirent *ent = readdir(dir); ent != nullptr; ent = readdir(dir)) { in GetSubDir() local
78 std::string childNode = ent->d_name; in GetSubDir()
/base/hiviewdfx/hilog/services/hilogd/
Dlog_persister_rotator.cpp111 struct dirent *ent = nullptr; in RemoveOldFile() local
113 while ((ent = readdir(dir)) != nullptr) { in RemoveOldFile()
114 size_t length = strlen(ent->d_name); in RemoveOldFile()
115 std::string pPath(ent->d_name, length); in RemoveOldFile()
Dservice_controller.cpp904 struct dirent *ent = nullptr; in RestorePersistJobs() local
909 while ((ent = readdir(dir)) != nullptr) { in RestorePersistJobs()
910 size_t length = strlen(ent->d_name); in RestorePersistJobs()
911 std::string pPath(ent->d_name, length); in RestorePersistJobs()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_read.cpp204 struct dirent* ent; in AllMatchedLogFiles() local
205 while ((ent = readdir(dir))) { in AllMatchedLogFiles()
206 if (IsMatchedLogFile(std::string(ent->d_name), beginTimeStamp, endTimeStamp)) { in AllMatchedLogFiles()
207 logFiles.emplace_back(ent->d_name); in AllMatchedLogFiles()