Home
last modified time | relevance | path

Searched refs:file_stat (Results 1 – 22 of 22) sorted by relevance

/external/libbrillo/brillo/
Dfile_utils.cc68 struct stat file_stat; in RegularFileOrDelete() local
69 if (fstat(scoped_fd.get(), &file_stat) != -1 && in RegularFileOrDelete()
70 S_ISREG(file_stat.st_mode) && file_stat.st_uid == uid && in RegularFileOrDelete()
71 file_stat.st_gid == gid) { in RegularFileOrDelete()
/external/gtest/src/
Dgtest-filepath.cc211 posix::StatStruct file_stat; in FileOrDirectoryExists()
212 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
238 posix::StatStruct file_stat; in DirectoryExists() local
239 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
240 posix::IsDir(file_stat); in DirectoryExists()
/external/protobuf/gtest/src/
Dgtest-filepath.cc209 posix::StatStruct file_stat; in FileOrDirectoryExists()
210 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
236 posix::StatStruct file_stat; in DirectoryExists() local
237 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
238 posix::IsDir(file_stat); in DirectoryExists()
/external/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc207 posix::StatStruct file_stat; in FileOrDirectoryExists()
208 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
234 posix::StatStruct file_stat; in DirectoryExists() local
235 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
236 posix::IsDir(file_stat); in DirectoryExists()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-filepath.cc209 posix::StatStruct file_stat; in FileOrDirectoryExists()
210 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
236 posix::StatStruct file_stat; in DirectoryExists() local
237 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
238 posix::IsDir(file_stat); in DirectoryExists()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-filepath.cc211 posix::StatStruct file_stat; in FileOrDirectoryExists()
212 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
238 posix::StatStruct file_stat; in DirectoryExists() local
239 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
240 posix::IsDir(file_stat); in DirectoryExists()
/external/mesa3d/src/gtest/src/
Dgtest-filepath.cc209 posix::StatStruct file_stat; in FileOrDirectoryExists()
210 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
236 posix::StatStruct file_stat; in DirectoryExists() local
237 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
238 posix::IsDir(file_stat); in DirectoryExists()
/external/libbrillo/policy/
Ddevice_policy_impl.cc399 struct stat file_stat; in VerifyPolicyFiles() local
400 stat(policy_path_.value().c_str(), &file_stat); in VerifyPolicyFiles()
401 if (file_stat.st_uid != 0) { in VerifyPolicyFiles()
405 stat(keyfile_path_.value().c_str(), &file_stat); in VerifyPolicyFiles()
406 if (file_stat.st_uid != 0) { in VerifyPolicyFiles()
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
Dhog.c116 struct stat file_stat; in main() local
117 if (stat(argv[1], &file_stat) == 0) { in main()
118 if (S_ISSOCK(file_stat.st_mode)) { in main()
/external/libbrillo/brillo/streams/
Dfile_stream.cc54 struct stat file_stat; in GetFileMode() local
55 if (fstat(fd_, &file_stat) < 0) in GetFileMode()
57 return file_stat.st_mode; in GetFileMode()
61 struct stat file_stat; in GetSize() local
62 if (fstat(fd_, &file_stat) < 0) in GetSize()
64 return file_stat.st_size; in GetSize()
/external/curl/lib/
Dfile.c314 struct_stat file_stat; in file_upload() local
352 if(fstat(fd, &file_stat)) { in file_upload()
358 data->state.resume_from = (curl_off_t)file_stat.st_size; in file_upload()
/external/google-breakpad/src/tools/mac/crash_report/
Don_demand_symbol_supplier.mm249 struct stat file_stat;
250 if (stat(path, &file_stat) == 0)
251 result = (float)file_stat.st_mtimespec.tv_sec +
252 (float)file_stat.st_mtimespec.tv_nsec / 1.0e9f;
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/lib/input_reader/
D_gcs.py242 [file_stat.filename for file_stat in cloudstorage.listbucket(
/external/chromium-trace/catapult/trace_processor/third_party/cloudstorage/
Dcloudstorage_api.py143 file_stat = common.GCSFileStat(
151 return file_stat
/external/v8/src/base/platform/
Dplatform-posix.cc419 struct stat file_stat; in FOpen() local
420 if (fstat(fileno(file), &file_stat) != 0) return NULL; in FOpen()
421 bool is_regular_file = ((file_stat.st_mode & S_IFREG) != 0); in FOpen()
/external/autotest/client/bin/
Dsite_sysinfo.py74 class file_stat(object): class
130 self._log_stats[file_path] = file_stat(file_path)
/external/autotest/server/hosts/
Dabstract_ssh.py250 file_stat = os.stat(filename)
255 if not file_stat.st_mode & 0111:
/external/protobuf/gtest/fused-src/gtest/
Dgtest-all.cc7417 posix::StatStruct file_stat; in FileOrDirectoryExists()
7418 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
7444 posix::StatStruct file_stat; in DirectoryExists() local
7445 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
7446 posix::IsDir(file_stat); in DirectoryExists()
/external/v8/src/
Dd8.cc1379 struct stat file_stat; in FOpen()
1380 if (fstat(fileno(file), &file_stat) != 0) return NULL; in FOpen()
1381 bool is_regular_file = ((file_stat.st_mode & S_IFREG) != 0); in FOpen()
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dinput_readers.py2435 [file_stat.filename for file_stat in cloudstorage.listbucket(
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-all.cc8043 posix::StatStruct file_stat; in FileOrDirectoryExists()
8044 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
8070 posix::StatStruct file_stat; in DirectoryExists() local
8071 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
8072 posix::IsDir(file_stat); in DirectoryExists()
/external/vulkan-validation-layers/tests/gtest-1.7.0/fused-src/gtest/
Dgtest-all.cc8045 posix::StatStruct file_stat; in FileOrDirectoryExists()
8046 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
8072 posix::StatStruct file_stat; in DirectoryExists() local
8073 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
8074 posix::IsDir(file_stat); in DirectoryExists()