Searched refs:ent (Results 1 – 7 of 7) sorted by relevance
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
D | dfx_util.cpp | 122 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/ |
D | hiview_service_ability.cpp | 179 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/ |
D | file_util.cpp | 114 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/ |
D | dump_common_utils.cpp | 45 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/ |
D | log_persister_rotator.cpp | 111 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()
|
D | service_controller.cpp | 904 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/ |
D | hiappevent_read.cpp | 204 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()
|