Lines Matching refs:stat
25 #include <sys/stat.h>
77 struct stat st = {};
78 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) {
183 struct stat st = {};
184 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) {
253 std::string statPath = JoinPath("/proc/", std::to_string(procInfo.pid), "/stat");
257 std::string stat;
262 if (!ReadFromFile(statPath, stat)) {
263 HILOGD("stat file error!");
266 std::istringstream isStat(stat);