/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_compat_solaris_pax_sparse.c | 38 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 D | test_sparse_basic.c | 334 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 D | fastlz_api.c | 213 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 D | NativeProcessELF.cpp | 70 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 D | streaming_parser.c | 54 size_t bytes_read = 0; in main() local 56 while (bytes_read < length) { in main() 57 decode_result = cbor_stream_decode(buffer + bytes_read, length - bytes_read, in main() 59 bytes_read += decode_result.read; in main()
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | NativeProcessProtocol.cpp | 376 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local 378 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint() 379 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint() 382 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint() 433 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local 435 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 440 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint() 445 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 651 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument 652 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap() [all …]
|
H A D | File.cpp | 551 ssize_t bytes_read = -1; in Write() 553 bytes_read = in Write() 555 if (bytes_read == -1) { in Write() 559 num_bytes = bytes_read; in Write() 564 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Write() 566 if (bytes_read == 0) { in Write() 573 num_bytes = bytes_read; in Write() 682 ssize_t bytes_read = in Write() 684 if (bytes_read < 0) { in Write() 688 offset += bytes_read; in Write() 520 ssize_t bytes_read = -1; Read() local 644 ssize_t bytes_read = Read() local [all...] |
H A D | PipeBase.cpp | 21 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) { in Read() argument 23 bytes_read); in Read()
|
H A D | FileCache.cpp | 109 size_t bytes_read = dst_len; in ReadFile() local 110 error = file_up->Read(dst, bytes_read); in ReadFile() 113 return bytes_read; in ReadFile()
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_console.c | 468 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/libarchive/libarchive/ |
H A D | archive_read_support_format_tar.c | 597 ssize_t bytes_read; in archive_read_format_tar_read_data() local 629 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_tar_read_data() 636 if (bytes_read > tar->entry_bytes_remaining) in archive_read_format_tar_read_data() 637 bytes_read = (ssize_t)tar->entry_bytes_remaining; in archive_read_format_tar_read_data() 640 if (tar->sparse_list->remaining < bytes_read) in archive_read_format_tar_read_data() 641 bytes_read = (ssize_t)tar->sparse_list->remaining; in archive_read_format_tar_read_data() 642 *size = bytes_read; in archive_read_format_tar_read_data() 644 tar->sparse_list->remaining -= bytes_read; in archive_read_format_tar_read_data() 645 tar->sparse_list->offset += bytes_read; in archive_read_format_tar_read_data() 646 tar->entry_bytes_remaining -= bytes_read; in archive_read_format_tar_read_data() [all …]
|
H A D | archive_read_support_format_ar.c | 483 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 D | archive_write_add_filter_program.c | 333 ssize_t bytes_read; in __archive_write_program_close() 345 bytes_read = read(data->child_stdout, in __archive_write_program_close() 348 } while (bytes_read == -1 && errno == EINTR); in __archive_write_program_close() 350 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE)) in __archive_write_program_close() 353 if (bytes_read == -1) { in __archive_write_program_close() 359 data->child_buf_avail += bytes_read; in __archive_write_program_close() 334 ssize_t bytes_read; __archive_write_program_close() local
|
H A D | archive_read_open_file.c | 111 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()
|
H A D | archive_read_open_fd.c | 115 ssize_t bytes_read; in file_read() local 119 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read() 120 if (bytes_read < 0) { in file_read() 126 return (bytes_read); in file_read()
|
H A D | archive_read.c | 827 size_t bytes_read; in archive_read_data() local 831 bytes_read = 0; in archive_read_data() 844 return (bytes_read); in archive_read_data() 876 bytes_read += len; in archive_read_data() 891 bytes_read += len; in archive_read_data() 897 return (bytes_read); in archive_read_data() 1328 ssize_t bytes_read; in __archive_read_filter_ahead() local 1388 bytes_read = (filter->vtable->read)(filter, in __archive_read_filter_ahead() 1390 if (bytes_read < 0) { /* Read error. */ in __archive_read_filter_ahead() 1399 if (bytes_read == 0) { in __archive_read_filter_ahead() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_pool.c | 106 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument 114 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack() 120 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack() 127 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack() 145 *leftover = bytes_read; in zpool_history_unpack()
|
/freebsd/crypto/openssl/apps/ |
H A D | s_time.c | 128 long bytes_read = 0, finishtime = 0; in s_time_main() local 273 bytes_read = 0; in s_time_main() 289 bytes_read += i; in s_time_main() 317 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 321 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main() 355 bytes_read = 0; in s_time_main() 371 bytes_read += i; in s_time_main() 396 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 400 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
|
/freebsd/lib/libutil/ |
H A D | uucplock.c | 208 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 D | SBFile.cpp | 57 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() 67 *bytes_read = num_bytes; in Read()
|
/freebsd/sys/security/mac_veriexec_parser/ |
H A D | mac_veriexec_parser.c | 260 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/contrib/dialog/ |
H A D | textbox.c | 42 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 D | dfsan_custom.cpp | 124 static char *dfsan_strchr_with_label(const char *s, int c, size_t *bytes_read, in dfsan_strchr_with_label() argument 132 *bytes_read = i + 1; in dfsan_strchr_with_label() 140 *ret_label = dfsan_union(dfsan_read_label(s, *bytes_read), in dfsan_strchr_with_label() 149 size_t bytes_read; in __dfsw_strchr() local 150 return dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, in __dfsw_strchr() 158 size_t bytes_read; in __dfso_strchr() local 160 dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, ret_label); in __dfso_strchr() 164 dfsan_origin o = dfsan_read_origin_of_first_taint(s, bytes_read); in __dfso_strchr() 263 size_t *bytes_read) { in dfsan_memcmp_bcmp() argument 267 *bytes_read = i + 1; in dfsan_memcmp_bcmp() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | PipePosix.cpp | 305 size_t &bytes_read) { in ReadWithTimeout() argument 307 bytes_read = 0; in ReadWithTimeout() 322 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout() 324 bytes_read += result; in ReadWithTimeout() 325 if (bytes_read == size || result == 0) in ReadWithTimeout()
|
/freebsd/crypto/openssl/providers/common/ |
H A D | bio_prov.c | 91 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()
|