Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 99) sorted by relevance

1234

/NextBSD/contrib/libarchive/libarchive/test/
HDtest_compat_solaris_pax_sparse.c40 size_t bytes_read; in test_compat_solaris_pax_sparse_1() local
80 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_1()
82 assert((offset >= 0 && offset + bytes_read <= 131072) || in test_compat_solaris_pax_sparse_1()
83 (offset >= 393216 && offset + bytes_read <= 393216+131072) || in test_compat_solaris_pax_sparse_1()
84 (offset >= 786432 && offset + bytes_read <= 786432+32775)); in test_compat_solaris_pax_sparse_1()
85 if (offset == 0 && bytes_read >= 1024*8) { in test_compat_solaris_pax_sparse_1()
89 } else if (offset + bytes_read == 819207 && bytes_read >= 7) { in test_compat_solaris_pax_sparse_1()
91 last += bytes_read - 7; in test_compat_solaris_pax_sparse_1()
121 size_t bytes_read; in test_compat_solaris_pax_sparse_2() local
156 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_2()
[all …]
/NextBSD/contrib/binutils/bfd/
HDdwarf2.c429 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
465 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
466 abbrev_ptr += bytes_read; in read_abbrevs()
477 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
478 abbrev_ptr += bytes_read; in read_abbrevs()
483 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
484 abbrev_ptr += bytes_read; in read_abbrevs()
485 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
486 abbrev_ptr += bytes_read; in read_abbrevs()
520 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
[all …]
/NextBSD/contrib/binutils/binutils/
HDdwarf.c227 unsigned int bytes_read; in process_extended_line_op() local
232 len = read_leb128 (data, & bytes_read, 0); in process_extended_line_op()
233 data += bytes_read; in process_extended_line_op()
238 return bytes_read; in process_extended_line_op()
241 len += bytes_read; in process_extended_line_op()
254 adr = byte_get (data, len - bytes_read - 1); in process_extended_line_op()
266 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0)); in process_extended_line_op()
267 data += bytes_read; in process_extended_line_op()
268 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0)); in process_extended_line_op()
269 data += bytes_read; in process_extended_line_op()
[all …]
/NextBSD/contrib/gdb/gdb/
HDdwarf2read.c704 int *bytes_read);
707 struct comp_unit_head *, int *bytes_read);
710 int *bytes_read);
1099 int bytes_read;
1102 &bytes_read);
1103 pubnames_ptr += bytes_read;
1126 int bytes_read; in read_comp_unit_head() local
1128 &bytes_read); in read_comp_unit_head()
1129 info_ptr += bytes_read; in read_comp_unit_head()
1133 &bytes_read); in read_comp_unit_head()
[all …]
HDdwarf2-frame.c273 int bytes_read; in execute_cfa_program() local
304 fs->pc = dwarf2_read_address (insn_ptr, insn_end, &bytes_read); in execute_cfa_program()
305 insn_ptr += bytes_read; in execute_cfa_program()
1236 unsigned int bytes_read; in decode_frame_entry_1() local
1243 length = read_initial_length (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
1244 buf += bytes_read; in decode_frame_entry_1()
1255 dwarf64_p = (bytes_read == 12); in decode_frame_entry_1()
1320 read_unsigned_leb128 (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
1321 buf += bytes_read; in decode_frame_entry_1()
1324 read_signed_leb128 (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
[all …]
HDdwarf2expr.c199 dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read) in dwarf2_read_address() argument
206 *bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT; in dwarf2_read_address()
267 int bytes_read; in execute_stack_op() local
307 result = dwarf2_read_address (op_ptr, op_end, &bytes_read); in execute_stack_op()
308 op_ptr += bytes_read; in execute_stack_op()
527 int bytes_read; in execute_stack_op() local
534 &bytes_read); in execute_stack_op()
541 int bytes_read; in execute_stack_op() local
547 &bytes_read); in execute_stack_op()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_read_support_format_tar.c525 ssize_t bytes_read; in archive_read_format_tar_read_data() local
557 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_tar_read_data()
558 if (bytes_read < 0) in archive_read_format_tar_read_data()
565 if (bytes_read > tar->entry_bytes_remaining) in archive_read_format_tar_read_data()
566 bytes_read = (ssize_t)tar->entry_bytes_remaining; in archive_read_format_tar_read_data()
569 if (tar->sparse_list->remaining < bytes_read) in archive_read_format_tar_read_data()
570 bytes_read = (ssize_t)tar->sparse_list->remaining; in archive_read_format_tar_read_data()
571 *size = bytes_read; in archive_read_format_tar_read_data()
573 tar->sparse_list->remaining -= bytes_read; in archive_read_format_tar_read_data()
574 tar->sparse_list->offset += bytes_read; in archive_read_format_tar_read_data()
[all …]
HDarchive_read_support_format_ar.c472 ssize_t bytes_read; in archive_read_format_ar_read_data() local
483 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_ar_read_data()
484 if (bytes_read == 0) { in archive_read_format_ar_read_data()
489 if (bytes_read < 0) in archive_read_format_ar_read_data()
491 if (bytes_read > ar->entry_bytes_remaining) in archive_read_format_ar_read_data()
492 bytes_read = (ssize_t)ar->entry_bytes_remaining; in archive_read_format_ar_read_data()
493 *size = bytes_read; in archive_read_format_ar_read_data()
494 ar->entry_bytes_unconsumed = bytes_read; in archive_read_format_ar_read_data()
496 ar->entry_offset += bytes_read; in archive_read_format_ar_read_data()
497 ar->entry_bytes_remaining -= bytes_read; in archive_read_format_ar_read_data()
HDarchive_write_add_filter_program.c354 ssize_t bytes_read; in __archive_write_program_close() local
366 bytes_read = read(data->child_stdout, in __archive_write_program_close()
369 } while (bytes_read == -1 && errno == EINTR); in __archive_write_program_close()
371 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE)) in __archive_write_program_close()
374 if (bytes_read == -1) { in __archive_write_program_close()
380 data->child_buf_avail += bytes_read; in __archive_write_program_close()
HDarchive_read_open_fd.c114 ssize_t bytes_read; in file_read() local
118 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
119 if (bytes_read < 0) { in file_read()
125 return (bytes_read); in file_read()
HDarchive_read_open_file.c111 size_t bytes_read; in file_read() local
114 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f); in file_read()
115 if (bytes_read < mine->block_size && ferror(mine->f)) { in file_read()
118 return (bytes_read); in file_read()
HDarchive_read.c767 size_t bytes_read; in archive_read_data() local
771 bytes_read = 0; in archive_read_data()
783 return (bytes_read); in archive_read_data()
815 bytes_read += len; in archive_read_data()
829 bytes_read += len; in archive_read_data()
834 return (bytes_read); in archive_read_data()
1216 ssize_t bytes_read; in __archive_read_filter_ahead() local
1276 bytes_read = (filter->read)(filter, in __archive_read_filter_ahead()
1278 if (bytes_read < 0) { /* Read error. */ in __archive_read_filter_ahead()
1287 if (bytes_read == 0) { in __archive_read_filter_ahead()
[all …]
HDarchive_read_support_format_iso9660.c495 ssize_t bytes_read; in archive_read_format_iso9660_bid() local
514 &bytes_read); in archive_read_format_iso9660_bid()
519 bytes_read -= RESERVED_AREA; in archive_read_format_iso9660_bid()
524 for (; bytes_read > LOGICAL_BLOCK_SIZE; in archive_read_format_iso9660_bid()
525 bytes_read -= LOGICAL_BLOCK_SIZE, p += LOGICAL_BLOCK_SIZE) { in archive_read_format_iso9660_bid()
1406 ssize_t bytes_read; in zisofs_read_data() local
1413 p = __archive_read_ahead(a, 1, &bytes_read); in zisofs_read_data()
1414 if (bytes_read <= 0) { in zisofs_read_data()
1419 if (bytes_read > iso9660->entry_bytes_remaining) in zisofs_read_data()
1420 bytes_read = (ssize_t)iso9660->entry_bytes_remaining; in zisofs_read_data()
[all …]
HDarchive_read_support_format_mtree.c1541 ssize_t bytes_read; in read_data() local
1567 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read); in read_data()
1568 if (bytes_read < 0) { in read_data()
1572 if (bytes_read == 0) { in read_data()
1576 mtree->offset += bytes_read; in read_data()
1577 *size = bytes_read; in read_data()
1803 ssize_t bytes_read; in readline() local
1814 t = __archive_read_ahead(a, 1, &bytes_read); in readline()
1817 if (bytes_read < 0) in readline()
1820 p = memchr(t, '\n', bytes_read); in readline()
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/Host/common/
HDSoftwareBreakpoint.cpp104 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
106 Error error = process.ReadMemory(addr, saved_opcode_bytes, bp_opcode_size, bytes_read); in EnableSoftwareBreakpoint()
115 if (bytes_read != bp_opcode_size) in EnableSoftwareBreakpoint()
118 …ted to read %lu bytes but only read %" PRIu64, __FUNCTION__, bp_opcode_size, (uint64_t)bytes_read); in EnableSoftwareBreakpoint()
119 …ted to read %lu bytes but only read %" PRIu64, __FUNCTION__, bp_opcode_size, (uint64_t)bytes_read); in EnableSoftwareBreakpoint()
228 size_t bytes_read = 0; in DoDisable() local
229 error = m_process.ReadMemory (m_addr, curr_break_op, m_opcode_size, bytes_read); in DoDisable()
230 if (error.Success() && bytes_read < m_opcode_size) in DoDisable()
232 …read %lu bytes but only read %" PRIu64, __FUNCTION__, m_addr, m_opcode_size, (uint64_t)bytes_read); in DoDisable()
HDFile.cpp636 ssize_t bytes_read = -1; in Read() local
641 bytes_read = ::read (m_descriptor, buf, num_bytes); in Read()
642 } while (bytes_read < 0 && errno == EINTR); in Read()
644 if (bytes_read == -1) in Read()
650 num_bytes = bytes_read; in Read()
654 bytes_read = ::fread (buf, 1, num_bytes, m_stream); in Read()
656 if (bytes_read == 0) in Read()
665 num_bytes = bytes_read; in Read()
795 ssize_t bytes_read = -1; in Read() local
798 bytes_read = ::pread (fd, buf, num_bytes, offset); in Read()
[all …]
HDPipeBase.cpp24 PipeBase::Read(void *buf, size_t size, size_t &bytes_read) in Read() argument
26 return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(), bytes_read); in Read()
/NextBSD/crypto/openssl/apps/
HDs_time.c137 static long bytes_read = 0; variable
160 bytes_read = 0; in s_time_init()
406 bytes_read = 0; in MAIN()
429 bytes_read += i; in MAIN()
463 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in MAIN()
466 nConn, (long)time(NULL) - finishtime + maxTime, bytes_read / nConn); in MAIN()
501 bytes_read = 0; in MAIN()
524 bytes_read += i; in MAIN()
554 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in MAIN()
558 bytes_read / (nConn?nConn:1)); in MAIN()
/NextBSD/lib/libutil/
HDuucplock.c212 int bytes_read; in get_pid() local
216 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
217 if (bytes_read > 0) { in get_pid()
218 buf[bytes_read] = '\0'; in get_pid()
222 *err = bytes_read ? errno : EINVAL; in get_pid()
/NextBSD/contrib/llvm/tools/lldb/source/API/
HDSBProcess.cpp358 size_t bytes_read = 0; in GetSTDOUT() local
363 bytes_read = process_sp->GetSTDOUT (dst, dst_len, error); in GetSTDOUT()
370 static_cast<int>(bytes_read), dst, in GetSTDOUT()
372 static_cast<uint64_t>(bytes_read)); in GetSTDOUT()
374 return bytes_read; in GetSTDOUT()
380 size_t bytes_read = 0; in GetSTDERR() local
385 bytes_read = process_sp->GetSTDERR (dst, dst_len, error); in GetSTDERR()
392 static_cast<int>(bytes_read), dst, in GetSTDERR()
394 static_cast<uint64_t>(bytes_read)); in GetSTDERR()
396 return bytes_read; in GetSTDERR()
[all …]
HDSBCommunication.cpp149 size_t bytes_read = 0; in Read() local
151 bytes_read = m_opaque->Read (dst, dst_len, timeout_usec, status, NULL); in Read()
160 static_cast<uint64_t>(bytes_read)); in Read()
161 return bytes_read; in Read()
/NextBSD/contrib/llvm/tools/lldb/source/Host/posix/
HDPipePosix.cpp374 …adWithTimeout(void *buf, size_t size, const std::chrono::microseconds &timeout, size_t &bytes_read) in ReadWithTimeout() argument
376 bytes_read = 0; in ReadWithTimeout()
383 [=, &bytes_read](bool &done) in ReadWithTimeout()
387 reinterpret_cast<char*>(buf) + bytes_read, in ReadWithTimeout()
388 size - bytes_read); in ReadWithTimeout()
391 bytes_read += result; in ReadWithTimeout()
392 if (bytes_read == size || result == 0) in ReadWithTimeout()
/NextBSD/contrib/dialog/
HDtextbox.c42 long bytes_read; member
144 obj->bytes_read = begin_line = 0; in read_high()
147 obj->bytes_read += dialog_state.tab_len in read_high()
148 - ((obj->bytes_read - begin_line) in read_high()
151 obj->bytes_read++; in read_high()
152 begin_line = obj->bytes_read; in read_high()
154 obj->bytes_read++; in read_high()
156 if (obj->bytes_read > obj->buffer_len) { in read_high()
163 obj->buffer_len = obj->bytes_read; in read_high()
177 obj->bytes_read = obj->fd_bytes_read; in read_high()
[all …]
/NextBSD/contrib/apr/file_io/unix/
HDfullrw.c22 apr_size_t *bytes_read) in apr_file_read_full() argument
36 if (bytes_read != NULL) in apr_file_read_full()
37 *bytes_read = total_read; in apr_file_read_full()
/NextBSD/contrib/subversion/subversion/libsvn_fs_base/bdb/
HDstrings-table.c204 apr_size_t length, bytes_read = 0; in svn_fs_bdb__string_read() local
238 result.data = buf + bytes_read; in svn_fs_bdb__string_read()
239 result.ulen = (u_int32_t)(*len - bytes_read); in svn_fs_bdb__string_read()
250 bytes_read += result.size; in svn_fs_bdb__string_read()
251 if (bytes_read == *len) in svn_fs_bdb__string_read()
271 *len = bytes_read; in svn_fs_bdb__string_read()

1234