Home
last modified time | relevance | path

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

12345

/freebsd-12.1/contrib/libarchive/libarchive/test/
H A Dtest_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()
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()
160 if (offset + bytes_read == 819231 && bytes_read >= 31) { in test_compat_solaris_pax_sparse_2()
[all …]
H A Dtest_sparse_basic.c330 size_t bytes_read; in verify_sparse_file() local
341 while (ARCHIVE_OK == archive_read_data_block(a, &buff, &bytes_read, in verify_sparse_file()
345 fprintf(stderr, "%s: bytes_read=%d offset=%d\n", path, (int)bytes_read, (int)offset); in verify_sparse_file()
362 && expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
376 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
384 if (end > (const char *)buff + bytes_read) { in verify_sparse_file()
385 end = (const char *)buff + bytes_read; in verify_sparse_file()
396 if (assert(expected_offset + sparse->size <= offset + bytes_read)) { in verify_sparse_file()
408 if (expected_offset < offset + (int64_t)bytes_read) { in verify_sparse_file()
409 const char *end = (const char *)buff + bytes_read; in verify_sparse_file()
[all …]
/freebsd-12.1/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c215 unsigned int bytes_read; in compress_buff() local
227 if (bytes_read < 32) in compress_buff()
244 bytes_read); in compress_buff()
263 bytes_read); in compress_buff()
270 bytes_read); in compress_buff()
288 size_t bytes_read; in detect_magic() local
294 if (bytes_read < 8) in detect_magic()
396 if (bytes_read == 0) in decompress_buffer()
448 bytes_read = in decompress_buffer()
460 bytes_read); in decompress_buffer()
[all …]
/freebsd-12.1/usr.sbin/daemon/
H A Ddaemon.c460 static size_t bytes_read = 0; in listen_child() local
464 assert(bytes_read < LBUF_SIZE - 1); in listen_child()
466 rv = read(fd, buf + bytes_read, LBUF_SIZE - bytes_read - 1); in listen_child()
470 bytes_read += rv; in listen_child()
480 assert(bytes_line <= bytes_read); in listen_child()
482 bytes_read -= bytes_line; in listen_child()
483 memmove(buf, cp + 1, bytes_read); in listen_child()
486 if (bytes_read < LBUF_SIZE - 1) in listen_child()
489 bytes_read = 0; in listen_child()
501 if (bytes_read > 0) { in listen_child()
[all …]
/freebsd-12.1/contrib/binutils/bfd/
H A Ddwarf2.c466 abbrev_ptr += bytes_read; in read_abbrevs()
521 abbrev_ptr += bytes_read; in read_abbrevs()
523 abbrev_ptr += bytes_read; in read_abbrevs()
558 unsigned int bytes_read; in read_attribute_value() local
1098 line_ptr += bytes_read; in decode_line_info()
1135 line_ptr += bytes_read; in decode_line_info()
1201 line_ptr += bytes_read; in decode_line_info()
1221 line_ptr += bytes_read; in decode_line_info()
1262 line_ptr += bytes_read; in decode_line_info()
1575 info_ptr += bytes_read; in find_abstract_instance_name()
[all …]
/freebsd-12.1/contrib/binutils/binutils/
H A Ddwarf.c233 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()
440 start += bytes_read; in process_abbrev_section()
443 start += bytes_read; in process_abbrev_section()
642 data += bytes_read; in decode_location_expression()
646 data += bytes_read; in decode_location_expression()
702 data += bytes_read; in decode_location_expression()
847 data += bytes_read; in decode_location_expression()
852 data += bytes_read; in decode_location_expression()
[all …]
/freebsd-12.1/sys/dev/liquidio/base/
H A Dlio_console.c469 int32_t bytes_read) in lio_output_console_line() argument
476 for (i = 0; i < bytes_read; i++) { in lio_output_console_line()
540 if (bytes_read > 0) { in lio_check_console()
541 total_read += bytes_read; in lio_check_console()
549 bytes_read); in lio_check_console()
552 } else if (bytes_read < 0) { in lio_check_console()
554 console_num, bytes_read); in lio_check_console()
799 if (bytes_read > 0) { in lio_get_uboot_version()
802 total_read += bytes_read; in lio_get_uboot_version()
806 } else if (bytes_read < 0) { in lio_get_uboot_version()
[all …]
/freebsd-12.1/contrib/gdb/gdb/
H A Ddwarf2read.c1099 int bytes_read;
1126 int bytes_read; in read_comp_unit_head() local
4863 *bytes_read = 8; in read_initial_length()
4872 *bytes_read = 4; in read_initial_length()
5201 int bytes_read; in dwarf_decode_line_header() local
7546 i += bytes_read; in decode_locdesc()
7555 i += bytes_read; in decode_locdesc()
7590 &bytes_read); in decode_locdesc()
7591 i += bytes_read; in decode_locdesc()
7596 i += bytes_read; in decode_locdesc()
[all …]
H A Ddwarf2-frame.c273 int bytes_read; in execute_cfa_program() local
305 insn_ptr += bytes_read; in execute_cfa_program()
1236 unsigned int bytes_read; in decode_frame_entry_1() local
1244 buf += bytes_read; in decode_frame_entry_1()
1255 dwarf64_p = (bytes_read == 12); in decode_frame_entry_1()
1321 buf += bytes_read; in decode_frame_entry_1()
1325 buf += bytes_read; in decode_frame_entry_1()
1336 buf += bytes_read; in decode_frame_entry_1()
1420 buf += bytes_read; in decode_frame_entry_1()
1424 buf += bytes_read; in decode_frame_entry_1()
[all …]
H A Ddwarf2expr.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()
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_read_support_format_tar.c591 ssize_t bytes_read; in archive_read_format_tar_read_data() local
624 if (bytes_read < 0) in archive_read_format_tar_read_data()
637 *size = bytes_read; in archive_read_format_tar_read_data()
851 ssize_t bytes_read; in tar_read_header() local
2305 ssize_t bytes_read; in gnu_sparse_old_read() local
2322 if (bytes_read < 0) in gnu_sparse_old_read()
2443 ssize_t bytes_read; in gnu_sparse_10_atol() local
2474 bytes_read--; in gnu_sparse_10_atol()
2487 ssize_t bytes_read; in gnu_sparse_10_read() local
2723 ssize_t bytes_read; in readline() local
[all …]
H A Darchive_read_support_format_ar.c484 ssize_t bytes_read; in archive_read_format_ar_read_data() local
495 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_ar_read_data()
496 if (bytes_read == 0) { in archive_read_format_ar_read_data()
501 if (bytes_read < 0) in archive_read_format_ar_read_data()
503 if (bytes_read > ar->entry_bytes_remaining) in archive_read_format_ar_read_data()
504 bytes_read = (ssize_t)ar->entry_bytes_remaining; in archive_read_format_ar_read_data()
505 *size = bytes_read; in archive_read_format_ar_read_data()
506 ar->entry_bytes_unconsumed = bytes_read; in archive_read_format_ar_read_data()
508 ar->entry_offset += bytes_read; in archive_read_format_ar_read_data()
509 ar->entry_bytes_remaining -= bytes_read; in archive_read_format_ar_read_data()
H A Darchive_write_add_filter_program.c357 ssize_t bytes_read; in __archive_write_program_close() local
369 bytes_read = read(data->child_stdout, in __archive_write_program_close()
372 } while (bytes_read == -1 && errno == EINTR); in __archive_write_program_close()
374 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE)) in __archive_write_program_close()
377 if (bytes_read == -1) { in __archive_write_program_close()
383 data->child_buf_avail += bytes_read; in __archive_write_program_close()
H A Darchive_read_open_file.c112 size_t bytes_read; in file_read() local
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f); in file_read()
116 if (bytes_read < mine->block_size && ferror(mine->f)) { in file_read()
119 return (bytes_read); in file_read()
H A Darchive_read.c839 size_t bytes_read; in archive_read_data() local
843 bytes_read = 0; in archive_read_data()
856 return (bytes_read); in archive_read_data()
888 bytes_read += len; in archive_read_data()
903 bytes_read += len; in archive_read_data()
908 return (bytes_read); in archive_read_data()
1324 ssize_t bytes_read; in __archive_read_filter_ahead() local
1534 ssize_t bytes_read; in advance_file_pointer() local
1579 if (bytes_read < 0) { in advance_file_pointer()
1582 return (bytes_read); in advance_file_pointer()
[all …]
H A Darchive_read_open_fd.c116 ssize_t bytes_read; in file_read() local
120 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
121 if (bytes_read < 0) { in file_read()
127 return (bytes_read); in file_read()
/freebsd-12.1/crypto/openssl/apps/
H A Ds_time.c102 long bytes_read = 0, finishtime = 0; in s_time_main() local
218 bytes_read = 0; in s_time_main()
234 bytes_read += i; in s_time_main()
262 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
265 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
298 bytes_read = 0; in s_time_main()
314 bytes_read += i; in s_time_main()
338 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
341 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
/freebsd-12.1/lib/libutil/
H A Duucplock.c211 int bytes_read; in get_pid() local
215 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
216 if (bytes_read > 0) { in get_pid()
217 buf[bytes_read] = '\0'; in get_pid()
221 *err = bytes_read ? errno : EINVAL; in get_pid()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/common/
H A DFile.cpp369 ssize_t bytes_read = -1; in Read() local
371 bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, m_descriptor, buf, num_bytes); in Read()
372 if (bytes_read == -1) { in Read()
376 num_bytes = bytes_read; in Read()
378 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Read()
380 if (bytes_read == 0) { in Read()
387 num_bytes = bytes_read; in Read()
493 ssize_t bytes_read = in Read() local
495 if (bytes_read < 0) { in Read()
499 offset += bytes_read; in Read()
[all …]
H A DNativeProcessProtocol.cpp395 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
398 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
401 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
452 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
454 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
459 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
464 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
639 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
640 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
645 llvm::makeMutableArrayRef(static_cast<uint8_t *>(buf), bytes_read); in ReadMemoryWithoutTrap()
[all …]
/freebsd-12.1/sys/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c264 ssize_t bytes_read, resid; in read_manifest() local
268 bytes_read = 0; in read_manifest()
280 while (bytes_read < va.va_size) { in read_manifest()
283 va.va_size - bytes_read, bytes_read, in read_manifest()
289 bytes_read = va.va_size - resid; in read_manifest()
292 data[bytes_read] = '\0'; in read_manifest()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/posix/
H A DPipePosix.cpp258 size_t &bytes_read) { in ReadWithTimeout() argument
259 bytes_read = 0; in ReadWithTimeout()
273 auto result = ::read(fd, reinterpret_cast<char *>(buf) + bytes_read, in ReadWithTimeout()
274 size - bytes_read); in ReadWithTimeout()
276 bytes_read += result; in ReadWithTimeout()
277 if (bytes_read == size || result == 0) in ReadWithTimeout()
/freebsd-12.1/contrib/llvm/tools/lldb/source/API/
H A DSBProcess.cpp295 size_t bytes_read = 0; in GetSTDOUT() local
310 return bytes_read; in GetSTDOUT()
314 size_t bytes_read = 0; in GetSTDERR() local
329 return bytes_read; in GetSTDERR()
333 size_t bytes_read = 0; in GetAsyncProfileData() local
348 return bytes_read; in GetAsyncProfileData()
947 size_t bytes_read = 0; in ReadMemory() local
982 static_cast<uint64_t>(bytes_read)); in ReadMemory()
985 return bytes_read; in ReadMemory()
990 size_t bytes_read = 0; in ReadCStringFromMemory() local
[all …]
/freebsd-12.1/contrib/dialog/
H A Dtextbox.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()
163 obj->buffer_len = obj->bytes_read; in read_high()
177 obj->bytes_read = obj->fd_bytes_read; in read_high()
197 if (obj->bytes_read == -1) in read_high()
[all …]
/freebsd-12.1/contrib/apr/file_io/unix/
H A Dfullrw.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()

12345