Lines Matching refs:st
66 struct stat st {}; in FileExists() struct
67 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists()
86 struct stat st {}; in DirectoryExists() struct
87 if ((follow_symlinks ? stat : lstat)(path.c_str(), &st) == -1) { in DirectoryExists()
90 if ((st.st_mode & S_IFMT) != S_IFDIR) { in DirectoryExists()
290 struct stat st {}; in FileSize() struct
291 if (stat(path.c_str(), &st) == -1) { in FileSize()
294 return st.st_size; in FileSize()
304 struct stat st {}; in FileModificationTime() struct
305 if (stat(path.c_str(), &st) == -1) { in FileModificationTime()
308 std::chrono::seconds seconds(st.st_mtim.tv_sec); in FileModificationTime()
419 struct stat st {}; in FileIsSocket() struct
420 return stat(path.c_str(), &st) == 0 && S_ISSOCK(st.st_mode); in FileIsSocket()