Lines Matching refs:stat
81 struct stat st {}; in FileExists()
82 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists()
86 struct stat out; in FileDeviceId()
88 stat(path.c_str(), &out) == 0, in FileDeviceId()
102 struct stat out; in FileInodeNumber()
104 stat(path.c_str(), &out) == 0, in FileInodeNumber()
161 struct stat st {}; in DirectoryExists()
162 if ((follow_symlinks ? stat : lstat)(path.c_str(), &st) == -1) { in DirectoryExists()
247 auto callback = [](const char* child, const struct stat*, int file_type, in RecursivelyRemoveDirectory()
390 struct stat st {}; in FileSize()
391 if (stat(path.c_str(), &st) == -1) { in FileSize()
404 struct stat st {}; in FileModificationTime()
405 if (stat(path.c_str(), &st) == -1) { in FileModificationTime()
539 struct stat st {}; in FileIsSocket()
540 return stat(path.c_str(), &st) == 0 && S_ISSOCK(st.st_mode); in FileIsSocket()