Searched refs:statBuf (Results 1 - 6 of 6) sorted by relevance
/base/hiviewdfx/hisysevent/adapter/native/idl/src/ |
H A D | file_util.cpp | 37 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/hiappevent/frameworks/native/libhiappevent/utility/ |
H A D | file_util.cpp | 39 struct stat statBuf {};
in IsFile() struct 40 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false;
in IsFile() 45 struct stat statBuf {};
in IsDirectory() struct 46 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false;
in IsDirectory() 134 struct stat statBuf {};
in GetDirSize() struct 136 if (stat(file.c_str(), &statBuf) == 0) {
in GetDirSize() 137 totalSize += static_cast<uint64_t>(statBuf.st_size);
in GetDirSize() 145 struct stat statBuf {};
in GetFileSize() struct [all...] |
/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_manager.cpp | 130 struct stat statBuf; in LoadConfig() local 131 if (fstat(fd.Get(), &statBuf) < 0) { in LoadConfig() 140 if (sendfile(destFd, fd.Get(), nullptr, statBuf.st_size) < 0) { in LoadConfig() 141 ANS_LOGW("LoadConfig fd sendfile(size: %{public}d) to destFd fail.", static_cast<int>(statBuf.st_size)); in LoadConfig()
|
/base/hiviewdfx/hiview/adapter/service/server/src/ |
H A D | hiview_service_ability.cpp | 177 struct stat statBuf {}; in GetFileInfoUnderDir() struct 183 if (stat(filePath.c_str(), &statBuf) != 0) { in GetFileInfoUnderDir() 187 fileInfos.emplace_back(ent->d_name, statBuf.st_mtime, statBuf.st_size); in GetFileInfoUnderDir()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | peer_binder_catcher.cpp | 358 struct stat statBuf; in ForkToDumpHiperf() local 360 if (stat(fullPath.c_str(), &statBuf) == -1) { in ForkToDumpHiperf() 363 } else if (now - statBuf.st_mtime < perfLogExPireTime) { in ForkToDumpHiperf()
|
/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_device_builder.cpp | 146 struct stat statBuf; 147 if (stat(spath.str().c_str(), &statBuf) != 0) { 151 if (!S_ISDIR(statBuf.st_mode)) {
|
Completed in 4 milliseconds