Home
last modified time | relevance | path

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

123456

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_compat_solaris_pax_sparse.c38 size_t bytes_read; in test_compat_solaris_pax_sparse_1() local
78 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_1()
80 assert((offset >= 0 && offset + bytes_read <= 131072) || in test_compat_solaris_pax_sparse_1()
81 (offset >= 393216 && offset + bytes_read <= 393216+131072) || in test_compat_solaris_pax_sparse_1()
82 (offset >= 786432 && offset + bytes_read <= 786432+32775)); in test_compat_solaris_pax_sparse_1()
83 if (offset == 0 && bytes_read >= 1024*8) { in test_compat_solaris_pax_sparse_1()
87 } else if (offset + bytes_read == 819207 && bytes_read >= 7) { in test_compat_solaris_pax_sparse_1()
89 last += bytes_read - 7; in test_compat_solaris_pax_sparse_1()
119 size_t bytes_read; in test_compat_solaris_pax_sparse_2() local
154 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_2()
[all …]
H A Dtest_sparse_basic.c334 size_t bytes_read; in verify_sparse_file() local
345 while (ARCHIVE_OK == archive_read_data_block(a, &buff, &bytes_read, in verify_sparse_file()
349 fprintf(stderr, "%s: bytes_read=%d offset=%d\n", path, (int)bytes_read, (int)offset); in verify_sparse_file()
366 && expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
381 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
389 if (end > (const char *)buff + bytes_read) { in verify_sparse_file()
390 end = (const char *)buff + bytes_read; in verify_sparse_file()
401 if (assert(expected_offset + sparse->size <= offset + bytes_read)) { in verify_sparse_file()
413 if (expected_offset < offset + (int64_t)bytes_read) { in verify_sparse_file()
414 const char *end = (const char *)buff + bytes_read; in verify_sparse_file()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c213 unsigned int bytes_read; in compress_buff() local
217 bytes_read = pin_buff->size; in compress_buff()
225 if (bytes_read < 32) in compress_buff()
233 bytes_read, result); in compress_buff()
242 bytes_read); in compress_buff()
258 checksum = update_adler32(1L, pin_buff->data, bytes_read); in compress_buff()
260 rc = write_chunk_header(pout_buff, 17, 0, bytes_read, checksum, in compress_buff()
261 bytes_read); in compress_buff()
268 bytes_read); in compress_buff()
286 size_t bytes_read; in detect_magic() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/POSIX/
H A DNativeProcessELF.cpp70 size_t bytes_read; in GetELFImageInfoAddress() local
72 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress()
95 size_t bytes_read; in GetELFImageInfoAddress() local
97 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress()
120 size_t bytes_read; in ReadSVR4LibraryInfo() local
122 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo()
128 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo()
151 size_t bytes_read; in GetLoadedSVR4Libraries() local
153 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
162 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
/freebsd/contrib/libcbor/examples/
H A Dstreaming_parser.c48 size_t bytes_read = 0; in main() local
50 while (bytes_read < length) { in main()
51 decode_result = cbor_stream_decode(buffer + bytes_read, length - bytes_read, in main()
53 bytes_read += decode_result.read; in main()
/freebsd/sys/dev/liquidio/base/
H A Dlio_console.c468 int32_t bytes_read) in lio_output_console_line() argument
475 for (i = 0; i < bytes_read; i++) { in lio_output_console_line()
505 if (line != &console_buffer[bytes_read]) { in lio_output_console_line()
506 console_buffer[bytes_read] = '\0'; in lio_output_console_line()
522 int32_t bytes_read, total_read, tries; in lio_check_console() local
537 bytes_read = lio_console_read(oct, console_num, console_buffer, in lio_check_console()
539 if (bytes_read > 0) { in lio_check_console()
540 total_read += bytes_read; in lio_check_console()
548 bytes_read); in lio_check_console()
551 } else if (bytes_read < 0) { in lio_check_console()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DNativeProcessProtocol.cpp377 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
379 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
380 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
383 curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
436 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
438 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
443 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
448 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
654 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
655 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_tar.c612 ssize_t bytes_read; in archive_read_format_tar_read_data() local
647 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_tar_read_data()
654 if (bytes_read > tar->entry_bytes_remaining) in archive_read_format_tar_read_data()
655 bytes_read = (ssize_t)tar->entry_bytes_remaining; in archive_read_format_tar_read_data()
658 if (tar->sparse_list->remaining < bytes_read) in archive_read_format_tar_read_data()
659 bytes_read = (ssize_t)tar->sparse_list->remaining; in archive_read_format_tar_read_data()
660 *size = bytes_read; in archive_read_format_tar_read_data()
662 tar->sparse_list->remaining -= bytes_read; in archive_read_format_tar_read_data()
663 tar->sparse_list->offset += bytes_read; in archive_read_format_tar_read_data()
664 tar->entry_bytes_remaining -= bytes_read; in archive_read_format_tar_read_data()
[all …]
H A Darchive_read_support_format_ar.c483 ssize_t bytes_read; in archive_read_format_ar_read_data() local
494 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_ar_read_data()
495 if (bytes_read == 0) { in archive_read_format_ar_read_data()
500 if (bytes_read < 0) in archive_read_format_ar_read_data()
502 if (bytes_read > ar->entry_bytes_remaining) in archive_read_format_ar_read_data()
503 bytes_read = (ssize_t)ar->entry_bytes_remaining; in archive_read_format_ar_read_data()
504 *size = bytes_read; in archive_read_format_ar_read_data()
505 ar->entry_bytes_unconsumed = bytes_read; in archive_read_format_ar_read_data()
507 ar->entry_offset += bytes_read; in archive_read_format_ar_read_data()
508 ar->entry_bytes_remaining -= bytes_read; in archive_read_format_ar_read_data()
H A Darchive_write_add_filter_program.c334 ssize_t bytes_read; in __archive_write_program_close() local
346 bytes_read = read(data->child_stdout, in __archive_write_program_close()
349 } while (bytes_read == -1 && errno == EINTR); in __archive_write_program_close()
351 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE)) in __archive_write_program_close()
354 if (bytes_read == -1) { in __archive_write_program_close()
360 data->child_buf_avail += bytes_read; in __archive_write_program_close()
H A Darchive_read.c820 size_t bytes_read; in archive_read_data() local
824 bytes_read = 0; in archive_read_data()
839 return (bytes_read); in archive_read_data()
871 bytes_read += len; in archive_read_data()
886 bytes_read += len; in archive_read_data()
892 return (bytes_read); in archive_read_data()
1323 ssize_t bytes_read; in __archive_read_filter_ahead() local
1383 bytes_read = (filter->vtable->read)(filter, in __archive_read_filter_ahead()
1385 if (bytes_read < 0) { /* Read error. */ in __archive_read_filter_ahead()
1394 if (bytes_read == 0) { in __archive_read_filter_ahead()
[all …]
H A Darchive_read_open_fd.c118 ssize_t bytes_read; in file_read() local
122 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
123 if (bytes_read < 0) { in file_read()
129 return (bytes_read); in file_read()
H A Darchive_read_open_file.c115 size_t bytes_read; in FILE_read() local
118 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f); in FILE_read()
119 if (bytes_read < mine->block_size && ferror(mine->f)) { in FILE_read()
122 return (bytes_read); in FILE_read()
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c123 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument
131 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
137 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
144 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
162 *leftover = bytes_read; in zpool_history_unpack()
/freebsd/crypto/openssl/apps/
H A Ds_time.c146 long bytes_read = 0, finishtime = 0; in s_time_main() local
290 bytes_read = 0; in s_time_main()
306 bytes_read += i; in s_time_main()
332 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
335 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main()
371 bytes_read = 0; in s_time_main()
387 bytes_read += i; in s_time_main()
411 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
414 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_tserver.c257 size_t *bytes_read) in ossl_quic_tserver_read() argument
278 *bytes_read = 0; in ossl_quic_tserver_read()
287 bytes_read, &is_fin)) in ossl_quic_tserver_read()
290 if (*bytes_read > 0) { in ossl_quic_tserver_read()
301 if (!ossl_quic_rxfc_on_retire(&qs->rxfc, *bytes_read, in ossl_quic_tserver_read()
310 if (*bytes_read > 0) in ossl_quic_tserver_read()
320 size_t bytes_read = 0; in ossl_quic_tserver_has_read_ended() local
342 &bytes_read, &is_fin)) in ossl_quic_tserver_has_read_ended()
345 if (is_fin && bytes_read == 0) { in ossl_quic_tserver_has_read_ended()
349 &bytes_read, &is_fin)) in ossl_quic_tserver_has_read_ended()
[all …]
H A Dquic_tls_api.c26 static int crypto_recv_rcd_cb(const unsigned char **buf, size_t *bytes_read, in crypto_recv_rcd_cb() argument
34 return sc->qtcb.crypto_recv_rcd_cb(s, buf, bytes_read, sc->qtarg); in crypto_recv_rcd_cb()
37 static int crypto_release_rcd_cb(size_t bytes_read, void *arg) in crypto_release_rcd_cb() argument
44 return sc->qtcb.crypto_release_rcd_cb(s, bytes_read, sc->qtarg); in crypto_release_rcd_cb()
/freebsd/lib/libutil/
H A Duucplock.c208 int bytes_read; in get_pid() local
212 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
213 if (bytes_read > 0) { in get_pid()
214 buf[bytes_read] = '\0'; in get_pid()
218 *err = bytes_read ? errno : EINVAL; in get_pid()
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBFile.cpp57 SBError SBFile::Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read) { in Read() argument
58 LLDB_INSTRUMENT_VA(this, buf, num_bytes, bytes_read); in Read()
63 *bytes_read = 0; in Read()
66 *bytes_read = num_bytes; in Read()
/freebsd/sys/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c260 ssize_t bytes_read, resid; in read_manifest() local
264 bytes_read = 0; in read_manifest()
276 while (bytes_read < va.va_size) { in read_manifest()
279 va.va_size - bytes_read, bytes_read, in read_manifest()
285 bytes_read = va.va_size - resid; in read_manifest()
288 data[bytes_read] = '\0'; in read_manifest()
/freebsd/crypto/openssl/test/quic-openssl-docker/hq-interop/
H A Dquic-hq-interop-server.c468 size_t bytes_read = 0; in process_new_stream() local
520 bytes_read = 0; in process_new_stream()
521 if (!BIO_read_ex(readbio, buf, BUF_SIZE, &bytes_read)) { in process_new_stream()
534 rc = SSL_write_ex(stream, &buf[offset], bytes_read, &bytes_written); in process_new_stream()
548 bytes_read -= bytes_written; in process_new_stream()
551 if (bytes_read == 0) in process_new_stream()
/freebsd/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()
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 …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp126 static char *dfsan_strchr_with_label(const char *s, int c, size_t *bytes_read, in dfsan_strchr_with_label() argument
134 *bytes_read = i + 1; in dfsan_strchr_with_label()
142 *ret_label = dfsan_union(dfsan_read_label(s, *bytes_read), in dfsan_strchr_with_label()
151 size_t bytes_read; in __dfsw_strchr() local
152 return dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, in __dfsw_strchr()
160 size_t bytes_read; in __dfso_strchr() local
162 dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, ret_label); in __dfso_strchr()
166 dfsan_origin o = dfsan_read_origin_of_first_taint(s, bytes_read); in __dfso_strchr()
265 size_t *bytes_read) { in dfsan_memcmp_bcmp() argument
269 *bytes_read = i + 1; in dfsan_memcmp_bcmp()
[all …]
/freebsd/crypto/openssl/providers/common/
H A Dbio_prov.c91 size_t *bytes_read) in ossl_prov_bio_read_ex() argument
95 return c_bio_read_ex(bio, data, data_len, bytes_read); in ossl_prov_bio_read_ex()
165 size_t *bytes_read) in bio_core_read_ex() argument
167 return ossl_prov_bio_read_ex(BIO_get_data(bio), data, data_len, bytes_read); in bio_core_read_ex()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Minidump/
H A DMinidumpFileBuilder.cpp975 const lldb_private::CoreFileMemoryRange &range, uint64_t &bytes_read) { in ReadWriteMemoryInChunks() argument
983 uint64_t bytes_read) -> lldb_private::IterationAction { in ReadWriteMemoryInChunks() argument
984 if (error.Fail() || bytes_read == 0) { in ReadWriteMemoryInChunks()
988 current_addr, bytes_read, error.AsCString()); in ReadWriteMemoryInChunks()
1005 addDataError = AddData(buf, bytes_read); in ReadWriteMemoryInChunks()
1011 if (bytes_read != data_buffer.GetByteSize() && in ReadWriteMemoryInChunks()
1012 current_addr + bytes_read != size) { in ReadWriteMemoryInChunks()
1016 current_addr, bytes_read, in ReadWriteMemoryInChunks()
1017 data_buffer.GetByteSize() - bytes_read); in ReadWriteMemoryInChunks()
1028 bytes_read = m_process_sp->ReadMemoryInChunks( in ReadWriteMemoryInChunks()
[all …]

123456