Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate01.c163 struct stat file_stat; in get_blocksize() local
165 if (fstat(fd, &file_stat) < 0) in get_blocksize()
169 block_size = file_stat.st_blksize; in get_blocksize()
225 struct stat file_stat; in runtest() local
246 if (fstat(fd, &file_stat) < 0) in runtest()
249 if (file_stat.st_size != expected_size) in runtest()
Dfallocate04.c48 struct stat file_stat; in get_blocksize() local
50 SAFE_FSTAT(fd, &file_stat); in get_blocksize()
52 block_size = file_stat.st_blksize; in get_blocksize()
58 struct stat file_stat; in get_allocsize() local
62 SAFE_FSTAT(fd, &file_stat); in get_allocsize()
64 return file_stat.st_blocks * 512; in get_allocsize()
Dfallocate03.c181 struct stat file_stat; in get_blocksize() local
183 if (fstat(fd, &file_stat) < 0) in get_blocksize()
187 block_size = (int)file_stat.st_blksize; in get_blocksize()
/external/ltp/testcases/kernel/syscalls/mount/
Dmount03.c134 struct stat file_stat; in test_rwflag() local
305 if (fstat(fd, &file_stat) == -1) { in test_rwflag()
311 atime = file_stat.st_atime; in test_rwflag()
321 if (fstat(fd, &file_stat) == -1) { in test_rwflag()
328 if (file_stat.st_atime != atime) { in test_rwflag()
340 struct stat file_stat; in setup() local
372 SAFE_STAT(cleanup, file, &file_stat); in setup()
374 if (file_stat.st_mode != SUID_MODE && in setup()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c222 struct stat file_stat, file_newstat; in testfunc_noatime() local
241 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime()
258 if (file_stat.st_atime == file_newstat.st_atime) in testfunc_noatime()
278 struct stat file_stat; in testfunc_trunc() local
287 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat); in testfunc_trunc()
289 if (file_stat.st_size == 0) in testfunc_trunc()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc216 posix::StatStruct file_stat; in FileOrDirectoryExists()
217 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
243 posix::StatStruct file_stat; in DirectoryExists() local
244 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
245 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/googletest/googletest/src/
Dgtest-filepath.cc212 posix::StatStruct file_stat; in FileOrDirectoryExists()
213 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
239 posix::StatStruct file_stat; in DirectoryExists() local
240 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
241 posix::IsDir(file_stat); in DirectoryExists()
/external/mesa3d/src/gtest/src/
Dgtest-filepath.cc216 posix::StatStruct file_stat; in FileOrDirectoryExists()
217 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
243 posix::StatStruct file_stat; in DirectoryExists() local
244 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
245 posix::IsDir(file_stat); in DirectoryExists()
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
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/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-filepath.cc214 posix::StatStruct file_stat; in FileOrDirectoryExists()
215 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
241 posix::StatStruct file_stat; in DirectoryExists() local
242 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
243 posix::IsDir(file_stat); in DirectoryExists()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-filepath.cc216 posix::StatStruct file_stat; in FileOrDirectoryExists()
217 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
243 posix::StatStruct file_stat; in DirectoryExists() local
244 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
245 posix::IsDir(file_stat); in DirectoryExists()
/external/libbrillo/brillo/
Dfile_utils.cc74 struct stat file_stat; in RegularFileOrDelete() local
75 if (fstat(scoped_fd.get(), &file_stat) != -1 && in RegularFileOrDelete()
76 S_ISREG(file_stat.st_mode) && file_stat.st_uid == uid && in RegularFileOrDelete()
77 file_stat.st_gid == gid) { in RegularFileOrDelete()
/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/perf_data_converter/src/
Dperf_to_profile_lib.cc14 struct stat file_stat; in FileExists() local
15 return stat(path.c_str(), &file_stat) != -1; in FileExists()
/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/tensorflow/tensorflow/python/debug/lib/
Dsource_remote.py36 file_stat = gfile.Stat(file_path)
39 source_file_proto.last_modified = file_stat.mtime_nsec
40 source_file_proto.bytes = file_stat.length
/external/libbrillo/policy/
Ddevice_policy_impl.cc673 struct stat file_stat; in VerifyPolicyFile() local
674 stat(policy_path.value().c_str(), &file_stat); in VerifyPolicyFile()
675 if (file_stat.st_uid != 0) { in VerifyPolicyFile()
679 stat(keyfile_path_.value().c_str(), &file_stat); in VerifyPolicyFile()
680 if (file_stat.st_uid != 0) { in VerifyPolicyFile()
/external/curl/lib/
Dfile.c260 struct_stat file_stat; in file_upload() local
298 if(fstat(fd, &file_stat)) { in file_upload()
303 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/autotest/client/bin/
Dsite_sysinfo.py122 class file_stat(object): class
177 self._log_stats[file_path] = file_stat(file_path)
/external/v8/src/base/platform/
Dplatform-posix.cc560 struct stat file_stat; in FOpen() local
561 if (fstat(fileno(file), &file_stat) != 0) { in FOpen()
565 bool is_regular_file = ((file_stat.st_mode & S_IFREG) != 0); in FOpen()
/external/autotest/site_utils/
Dgs_offloader.py239 file_stat = os.lstat(path)
240 if stat.S_ISFIFO(file_stat.st_mode):
264 file_stat = os.lstat(path)
265 if stat.S_ISLNK(file_stat.st_mode):
/external/autotest/server/hosts/
Dabstract_ssh.py355 file_stat = os.stat(filename)
360 if not file_stat.st_mode & 0111:

12