Home
last modified time | relevance | path

Searched refs:statBuf (Results 1 – 5 of 5) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
Dfile_util.cpp37 struct stat statBuf {}; in IsFile() struct
38 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false; in IsFile()
43 struct stat statBuf {}; in IsDirectory() struct
44 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false; in IsDirectory()
132 struct stat statBuf {}; in GetDirSize() struct
134 if (stat(file.c_str(), &statBuf) == 0) { in GetDirSize()
135 totalSize += static_cast<uint64_t>(statBuf.st_size); in GetDirSize()
143 struct stat statBuf {}; in GetFileSize() struct
144 return stat(file.c_str(), &statBuf) == 0 ? static_cast<uint64_t>(statBuf.st_size) : 0; in GetFileSize()
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dfile_util.cpp37 struct stat statBuf {}; in IsFile() struct
38 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false; in IsFile()
43 struct stat statBuf {}; in IsDirectory() struct
44 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false; in IsDirectory()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_ability.cpp178 struct stat statBuf {}; in GetFileInfoUnderDir() struct
184 if (stat(filePath.c_str(), &statBuf) != 0) { in GetFileInfoUnderDir()
188 fileInfos.emplace_back(ent->d_name, statBuf.st_mtime, statBuf.st_size); in GetFileInfoUnderDir()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Dpeer_binder_catcher.cpp260 struct stat statBuf; in ForkToDumpHiperf() local
262 if (stat(fullPath.c_str(), &statBuf) == -1) { in ForkToDumpHiperf()
265 } else if (now - statBuf.st_mtime < PERF_LOG_EXPIRE_TIME) { in ForkToDumpHiperf()
/base/msdp/device_status/tools/vdev/src/
Dvirtual_device_builder.cpp131 struct stat statBuf; in Unmount() local
132 if (stat(spath.str().c_str(), &statBuf) != 0) { in Unmount()
136 if (!S_ISDIR(statBuf.st_mode)) { in Unmount()