/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate01.c | 163 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()
|
D | fallocate04.c | 34 struct stat file_stat; in get_blocksize() local 36 SAFE_FSTAT(fd, &file_stat); in get_blocksize() 38 block_size = file_stat.st_blksize; in get_blocksize() 44 struct stat file_stat; in get_allocsize() local 48 SAFE_FSTAT(fd, &file_stat); in get_allocsize() 50 return file_stat.st_blocks * 512; in get_allocsize()
|
D | fallocate03.c | 181 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/ |
D | mount03.c | 134 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/ |
D | openat02.c | 222 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/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
D | pidfd_send_signal03.c | 33 struct stat file_stat; in get_inode_number() local 35 SAFE_FSTAT(fd, &file_stat); in get_inode_number() 36 return file_stat.st_ino; in get_inode_number()
|
/external/libaom/libaom/third_party/googletest/src/googletest/src/ |
D | gtest-filepath.cc | 210 posix::StatStruct file_stat; in FileOrDirectoryExists() 211 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists() 237 posix::StatStruct file_stat; in DirectoryExists() local 239 posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat); in DirectoryExists()
|
/external/llvm/utils/unittest/googletest/src/ |
D | gtest-filepath.cc | 207 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/ |
D | gtest-filepath.cc | 209 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/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/ |
D | gtest-filepath.cc | 216 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/libvpx/libvpx/third_party/googletest/src/src/ |
D | gtest-filepath.cc | 214 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/googletest/googletest/src/ |
D | gtest-filepath.cc | 212 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/ |
D | gtest-filepath.cc | 212 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/libbrillo/brillo/ |
D | file_utils.cc | 74 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/fmtlib/src/ |
D | posix.cc | 145 Stat file_stat = Stat(); in size() 146 if (FMT_POSIX_CALL(fstat(fd_, &file_stat)) == -1) in size() 148 static_assert(sizeof(long long) >= sizeof(file_stat.st_size), in size() 150 return file_stat.st_size; in size()
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 116 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/tensorflow/tensorflow/python/debug/lib/ |
D | source_remote.py | 35 file_stat = gfile.Stat(file_path) 38 source_file_proto.last_modified = file_stat.mtime_nsec 39 source_file_proto.bytes = file_stat.length
|
/external/OpenCL-CTS/test_common/miniz/ |
D | miniz.c | 2304 struct MZ_FILE_STAT_STRUCT file_stat; in mz_zip_get_file_modified_time() 2306 if (MZ_FILE_STAT(pFilename, &file_stat) != 0) in mz_zip_get_file_modified_time() 2308 mz_zip_time_to_dos_time(file_stat.st_mtime, pDOS_time, pDOS_date); in mz_zip_get_file_modified_time() 2781 mz_zip_archive_file_stat file_stat; in mz_zip_reader_extract_to_mem_no_alloc() local 2789 if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) in mz_zip_reader_extract_to_mem_no_alloc() 2793 if (!file_stat.m_comp_size) in mz_zip_reader_extract_to_mem_no_alloc() 2802 if (file_stat.m_bit_flag & (1 | 32)) in mz_zip_reader_extract_to_mem_no_alloc() 2806 …if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (file_stat.m_method != 0) && (file_stat.m_method !… in mz_zip_reader_extract_to_mem_no_alloc() 2810 …needed_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size : file_stat.m_uncomp_s… in mz_zip_reader_extract_to_mem_no_alloc() 2815 cur_file_ofs = file_stat.m_local_header_ofs; in mz_zip_reader_extract_to_mem_no_alloc() [all …]
|
/external/libbrillo/brillo/streams/ |
D | file_stream.cc | 54 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/libbrillo/policy/ |
D | device_policy_impl.cc | 673 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/ |
D | file.c | 260 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/ |
D | on_demand_symbol_supplier.mm | 249 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/ |
D | site_sysinfo.py | 122 class file_stat(object): class 177 self._log_stats[file_path] = file_stat(file_path)
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 265 file_stat = os.lstat(path) 266 if stat.S_ISFIFO(file_stat.st_mode): 290 file_stat = os.lstat(path) 291 if stat.S_ISLNK(file_stat.st_mode):
|
/external/v8/src/base/platform/ |
D | platform-posix.cc | 658 struct stat file_stat; in FOpen() local 659 if (fstat(fileno(file), &file_stat) != 0) { in FOpen() 663 bool is_regular_file = ((file_stat.st_mode & S_IFREG) != 0); in FOpen()
|