Lines Matching refs:stat
27 #include <sys/stat.h>
39 struct stat info {};
55 if (stat(subDir.c_str(), &info) != 0) {
73 struct stat sb {};
74 if (stat(path.c_str(), &sb) == -1) {
75 LOG(ERROR) << "Failed to stat";
83 struct stat st {};
84 if (stat(fileName.c_str(), &st) == 0) {
119 struct stat st {};
121 stat(file_name.c_str(), &st);
136 struct stat st {};
137 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) {
145 struct stat st {};
146 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) {