Home
last modified time | relevance | path

Searched refs:file_length (Results 1 – 19 of 19) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c97 off_t file_length; /* test file length */ in main() local
128 file_length = stat_buf.st_size; in main()
134 if (file_length != TRUNC_LEN) { in main()
138 (int64_t) file_length, TRUNC_LEN); in main()
/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate01.c98 off_t file_length; /* test file length */ in main() local
130 file_length = stat_buf.st_size; in main()
136 if (file_length != TRUNC_LEN) { in main()
140 (int64_t) file_length, in main()
/external/dynamic_depth/internal/dynamic_depth/
Ddynamic_depth.cc97 size_t file_length = 0; in GetItemPayload() local
105 file_length = item->GetLength(); in GetItemPayload()
113 if (file_length == 0) { in GetItemPayload()
131 ParseFileAfterImageFromStream(file_offset, file_length, input_jpeg_stream, in GetItemPayload()
/external/pdfium/testing/
Dtest_support.cpp87 size_t file_length = ftell(file); in GetFileContents() local
88 if (!file_length) { in GetFileContents()
93 static_cast<char*>(malloc(file_length))); in GetFileContents()
97 size_t bytes_read = fread(buffer.get(), 1, file_length, file); in GetFileContents()
99 if (bytes_read != file_length) { in GetFileContents()
/external/u-boot/common/
DxyzModem.c51 unsigned long file_length, read_length; member
437 xyz.file_length = 0; in xyzModem_stream_open()
459 parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " "); in xyzModem_stream_open()
512 if (xyz.mode == xyzModem_xmodem || xyz.file_length == 0) in xyzModem_stream_read()
534 if (xyz.mode != xyzModem_xmodem && 0 != xyz.file_length) in xyzModem_stream_read()
537 if (xyz.read_length > xyz.file_length) in xyzModem_stream_read()
539 xyz.len -= (xyz.read_length - xyz.file_length); in xyzModem_stream_read()
/external/e2fsprogs/ext2ed/
Dfile_com.c39 file_info.file_length=ptr->i_size; in init_file_info()
267 if (file_info.file_offset+offset>file_info.file_length-1) break; in file_show_hex()
271 if (file_info.file_offset+offset+i>file_info.file_length-1) { in file_show_hex()
291 if (file_info.file_offset+offset+i>file_info.file_length-1) break; in file_show_hex()
332 if (file_info.file_offset+last_offset > file_info.file_length-1) in file_show_text()
333 last_offset=file_info.file_length-1-file_info.file_offset; in file_show_text()
388 wprintw (show_win,"File Offset %ld of %ld.",file_info.file_offset,file_info.file_length-1); in show_status()
Ddir_com.c68 info_ptr->file_length=ptr->i_size; in init_dir_info()
109 while (info.file_offset < info.file_length) { /* While we haven't reached the end */ in search_dir_entries()
127 if (info.file_offset >= info.file_length) break; in search_dir_entries()
530 wprintw (show_win,"Directory Offset %ld of %ld. ",file_info.file_offset,file_info.file_length-1); in show_dir_status()
Dext2ed.h136 long file_offset,file_length; member
/external/toolchain-utils/bestflags/
Dtask.py270 (checksum, cost, image, file_length, text_length) = out.split()
288 self._file_length = file_length
339 def __SetBuildResult(self, (checksum, build_cost, image, file_length, argument
344 self._file_length = file_length
/external/ltp/testcases/kernel/fs/inode/
Dinode02.c85 int max_depth, max_breadth, file_length; variable
140 file_length = 8; in main()
153 if (sscanf(argv[i++], "%d", &file_length) != 1) in main()
468 for (j = 1; j <= file_length; j++) { in generate()
620 for (j = 1; j <= file_length; j++) { in check()
/external/tensorflow/tensorflow/core/util/
Dmemmapped_file_system_test.cc155 uint64 file_length = 0; in TEST() local
156 TF_EXPECT_OK(memmapped_env.GetFileSize(filename, &file_length)); in TEST()
157 EXPECT_EQ(test_string.length(), file_length); in TEST()
/external/epid-sdk/example/util/src/
Dbufutil.c51 size_t file_length = 0; in GetFileSize() local
55 file_length = ftell(fp); in GetFileSize()
58 return file_length; in GetFileSize()
/external/v8/src/
Dd8-posix.cc819 int32_t file_length = bit_cast<int32_t>(htonl(big_endian_file_length)); in ReadCharsFromTcpPort() local
821 if (file_length < 0) { in ReadCharsFromTcpPort()
823 file_length, name, Shell::options.read_from_tcp_port); in ReadCharsFromTcpPort()
829 char* chars = new char[file_length]; in ReadCharsFromTcpPort()
833 while (total_received < file_length) { in ReadCharsFromTcpPort()
835 recv(sockfd, chars + total_received, file_length - total_received, 0); in ReadCharsFromTcpPort()
847 *size_out = file_length; in ReadCharsFromTcpPort()
/external/image_io/src/gcontainer/
Dgcontainer.cc131 size_t file_start_offset, size_t file_length, in ParseFileAfterImage() argument
137 return ParseFileAfterImageFromStream(file_start_offset, file_length, in ParseFileAfterImage()
/external/image_io/includes/image_io/gcontainer/
Dgcontainer.h30 size_t file_start_offset, size_t file_length,
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc962 for (size_t file_length : {a2_used, a1_used, a1_used / 2}) { in TEST_F()
963 SCOPED_TRACE(StringPrintf("file_length=%zu", file_length)); in TEST_F()
964 SetFileLength(file_path, file_length); in TEST_F()
984 EXPECT_EQ(file_length >= a1_used ? a1_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
985 EXPECT_EQ(file_length >= a2_used ? a2_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
989 EXPECT_EQ(file_length < a2_used, allocator.IsCorrupt()); in TEST_F()
995 EXPECT_EQ(file_length, static_cast<size_t>(actual_length)); in TEST_F()
/external/u-boot/drivers/usb/gadget/
Dstorage_common.c276 loff_t file_length; member
575 curlun->file_length = num_sectors << 9; in fsg_lun_open()
/external/pdfium/third_party/libopenjpeg20/
Dopenjpeg.c100 OPJ_OFF_T file_length = 0; in opj_get_data_length_from_file() local
103 file_length = (OPJ_OFF_T)OPJ_FTELL(p_file); in opj_get_data_length_from_file()
106 return (OPJ_UINT64)file_length; in opj_get_data_length_from_file()
/external/pdfium/samples/
Dpdfium_test.cc1599 size_t file_length = 0; in main() local
1601 GetFileContents(filename.c_str(), &file_length); in main()
1630 RenderPdf(filename, file_contents.get(), file_length, options, events); in main()