Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate01.c162 struct stat file_stat; in get_blocksize() local
164 if (fstat(fd, &file_stat) < 0) in get_blocksize()
168 block_size = file_stat.st_blksize; in get_blocksize()
224 struct stat file_stat; in runtest() local
245 if (fstat(fd, &file_stat) < 0) in runtest()
248 if (file_stat.st_size != expected_size) in runtest()
Dfallocate04.c34 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()
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()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c215 struct stat file_stat, file_newstat; in testfunc_noatime() local
228 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime()
245 if (file_stat.st_atime == file_newstat.st_atime) in testfunc_noatime()
265 struct stat file_stat; in testfunc_trunc() local
274 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat); in testfunc_trunc()
276 if (file_stat.st_size == 0) in testfunc_trunc()
/third_party/jerryscript/jerry-core/api/
Dgenerate-bytecode.c120 struct stat file_stat = { 0 }; in read_js_or_snapshot_file() local
130 if (fstat(fd, &file_stat) < 0) { in read_js_or_snapshot_file()
134 *file_bytesize = file_stat.st_size; in read_js_or_snapshot_file()
274 struct stat file_stat = { 0 }; in init_directory_list() local
276 if ((filefolder == NULL) || (stat(filefolder, &file_stat) < 0)) { in init_directory_list()
390 struct stat file_stat = { 0 }; in visit_directory() local
406 if (stat(input_file_path, &file_stat) < 0) { in visit_directory()
412 if (file_stat.st_mode & S_IFDIR) { in visit_directory()
520 struct stat file_stat = { 0 }; in walk_del_bytecode() local
528 if ((filefolder == NULL) || (stat(filefolder, &file_stat) < 0)) { in walk_del_bytecode()
[all …]
/third_party/mesa3d/src/gtest/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()
/third_party/libfuse/example/
Dinvalidate_path.c118 struct stat file_stat; in xmp_readdir() local
119 xmp_getattr("/" TIME_FILE_NAME, &file_stat, NULL); in xmp_readdir()
120 filler(buf, TIME_FILE_NAME, &file_stat, 0, 0); in xmp_readdir()
121 xmp_getattr("/" GROW_FILE_NAME, &file_stat, NULL); in xmp_readdir()
122 filler(buf, GROW_FILE_NAME, &file_stat, 0, 0); in xmp_readdir()
/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal03.c39 struct stat file_stat; in get_inode_number() local
41 SAFE_FSTAT(fd, &file_stat); in get_inode_number()
42 return file_stat.st_ino; in get_inode_number()
/third_party/googletest/googletest/src/
Dgtest-filepath.cc254 posix::StatStruct file_stat{}; in FileOrDirectoryExists()
255 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
281 posix::StatStruct file_stat{}; in DirectoryExists() local
283 posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat); in DirectoryExists()
/third_party/node/deps/googletest/src/
Dgtest-filepath.cc258 posix::StatStruct file_stat{}; in FileOrDirectoryExists()
259 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
285 posix::StatStruct file_stat{}; in DirectoryExists() local
287 posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat); in DirectoryExists()
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/
Dopen_by_handle_at01.c88 struct stat file_stat; in run() local
97 SAFE_FSTAT(fd, &file_stat); in run()
100 if (file_stat.st_size == 0 || (tc->fhp == &f_fhp)) in run()
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/
Dname_to_handle_at01.c82 struct stat file_stat; in run() local
98 SAFE_FSTAT(fd, &file_stat); in run()
101 if (file_stat.st_size == 0 || !tc->pathname[0]) in run()
/third_party/ltp/testcases/kernel/syscalls/openat2/
Dopenat201.c63 struct stat file_stat; in run() local
77 SAFE_FSTAT(fd, &file_stat); in run()
79 if (file_stat.st_size == 0) in run()
/third_party/curl/lib/
Dfile.c295 struct_stat file_stat; in file_upload() local
332 if(fstat(fd, &file_stat)) { in file_upload()
337 data->state.resume_from = (curl_off_t)file_stat.st_size; in file_upload()
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs414 let file_stat = fstat(&file)?; in open_and_check_file() localVariable
441 if entry.ino() == file_stat.st_ino in open_and_check_file()
447 check_proc_entry_with_stat(Kind::File, file.as_fd(), file_stat, Some(proc_stat))?; in open_and_check_file()
/third_party/astc-encoder/Source/
Dtinyexr.h4907 struct MZ_FILE_STAT_STRUCT file_stat; in mz_zip_get_file_modified_time()
4910 if (MZ_FILE_STAT(pFilename, &file_stat) != 0) return MZ_FALSE; in mz_zip_get_file_modified_time()
4911 mz_zip_time_to_dos_time(file_stat.st_mtime, pDOS_time, pDOS_date); in mz_zip_get_file_modified_time()
5473 mz_zip_archive_file_stat file_stat; in mz_zip_reader_extract_to_mem_no_alloc() local
5483 if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) return MZ_FALSE; in mz_zip_reader_extract_to_mem_no_alloc()
5487 if (!file_stat.m_comp_size) return MZ_TRUE; in mz_zip_reader_extract_to_mem_no_alloc()
5496 if (file_stat.m_bit_flag & (1 | 32)) return MZ_FALSE; in mz_zip_reader_extract_to_mem_no_alloc()
5499 if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (file_stat.m_method != 0) && in mz_zip_reader_extract_to_mem_no_alloc()
5500 (file_stat.m_method != MZ_DEFLATED)) in mz_zip_reader_extract_to_mem_no_alloc()
5504 needed_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size in mz_zip_reader_extract_to_mem_no_alloc()
[all …]
/third_party/node/deps/v8/src/base/platform/
Dplatform-posix.cc802 struct stat file_stat; in FOpen() local
803 if (fstat(fileno(file), &file_stat) != 0) { in FOpen()
807 bool is_regular_file = ((file_stat.st_mode & S_IFREG) != 0); in FOpen()
/third_party/lame/frontend/
Dget_audio.c456 struct stat file_stat; in fskip_long() local
458 if (fstat(fd, &file_stat) == 0) { in fskip_long()
459 if (S_ISFIFO(file_stat.st_mode)) { in fskip_long()