| /freebsd-13.1/contrib/libarchive/libarchive/test/ |
| H A D | test_compat_solaris_pax_sparse.c | 40 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 D | test_sparse_basic.c | 330 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() 377 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file() 385 if (end > (const char *)buff + bytes_read) { in verify_sparse_file() 386 end = (const char *)buff + bytes_read; in verify_sparse_file() 397 if (assert(expected_offset + sparse->size <= offset + bytes_read)) { in verify_sparse_file() 409 if (expected_offset < offset + (int64_t)bytes_read) { in verify_sparse_file() 410 const char *end = (const char *)buff + bytes_read; in verify_sparse_file() [all …]
|
| /freebsd-13.1/sys/dev/cxgbe/cudbg/ |
| H A D | fastlz_api.c | 215 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() 395 if (bytes_read == 0) in decompress_buffer() 444 bytes_read = in decompress_buffer() 456 bytes_read); in decompress_buffer() [all …]
|
| /freebsd-13.1/usr.sbin/daemon/ |
| H A D | daemon.c | 481 static size_t bytes_read = 0; in listen_child() local 485 assert(bytes_read < LBUF_SIZE - 1); in listen_child() 489 rv = read(fd, buf + bytes_read, LBUF_SIZE - bytes_read - 1); in listen_child() 493 bytes_read += rv; in listen_child() 503 assert(bytes_line <= bytes_read); in listen_child() 505 bytes_read -= bytes_line; in listen_child() 506 memmove(buf, cp + 1, bytes_read); in listen_child() 509 if (bytes_read < LBUF_SIZE - 1) in listen_child() 512 bytes_read = 0; in listen_child() 524 if (bytes_read > 0) { in listen_child() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/POSIX/ |
| H A D | NativeProcessELF.cpp | 69 size_t bytes_read; in GetELFImageInfoAddress() local 71 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress() 94 size_t bytes_read; in GetELFImageInfoAddress() local 96 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress() 119 size_t bytes_read; in ReadSVR4LibraryInfo() local 121 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo() 127 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo() 150 size_t bytes_read; in GetLoadedSVR4Libraries() local 152 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries() 161 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
|
| /freebsd-13.1/contrib/libcbor/examples/ |
| H A D | streaming_parser.c | 48 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-13.1/sys/dev/liquidio/base/ |
| H A D | lio_console.c | 469 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-13.1/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | NativeProcessProtocol.cpp | 362 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local 419 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local 426 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint() 431 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 647 size_t bytes_read = 0; in ReadCStringFromMemory() local 660 bytes_to_read, bytes_read); in ReadCStringFromMemory() 662 if (bytes_read == 0) in ReadCStringFromMemory() 673 total_bytes_read += bytes_read; in ReadCStringFromMemory() 674 curr_buffer += bytes_read; in ReadCStringFromMemory() 675 curr_addr += bytes_read; in ReadCStringFromMemory() [all …]
|
| H A D | File.cpp | 513 ssize_t bytes_read = -1; in Read() local 515 bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, m_descriptor, buf, num_bytes); in Read() 516 if (bytes_read == -1) { in Read() 520 num_bytes = bytes_read; in Read() 522 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Read() 524 if (bytes_read == 0) { in Read() 531 num_bytes = bytes_read; in Read() 637 ssize_t bytes_read = in Read() local 639 if (bytes_read < 0) { in Read() 643 offset += bytes_read; in Read() [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()
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_pool.c | 105 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument 113 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack() 119 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack() 125 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack() 143 *leftover = bytes_read; in zpool_history_unpack()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_format_tar.c | 595 ssize_t bytes_read; in archive_read_format_tar_read_data() local 628 if (bytes_read < 0) in archive_read_format_tar_read_data() 641 *size = bytes_read; in archive_read_format_tar_read_data() 855 ssize_t bytes_read; in tar_read_header() local 2333 ssize_t bytes_read; in gnu_sparse_old_read() local 2350 if (bytes_read < 0) in gnu_sparse_old_read() 2471 ssize_t bytes_read; in gnu_sparse_10_atol() local 2502 bytes_read--; in gnu_sparse_10_atol() 2515 ssize_t bytes_read; in gnu_sparse_10_read() local 2751 ssize_t bytes_read; in readline() local [all …]
|
| H A D | archive_read_support_format_ar.c | 484 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 D | archive_write_add_filter_program.c | 334 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 D | archive_read_open_file.c | 112 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 D | archive_read_open_fd.c | 116 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()
|
| H A D | archive_read.c | 828 size_t bytes_read; in archive_read_data() local 832 bytes_read = 0; in archive_read_data() 845 return (bytes_read); in archive_read_data() 877 bytes_read += len; in archive_read_data() 892 bytes_read += len; in archive_read_data() 898 return (bytes_read); in archive_read_data() 1329 ssize_t bytes_read; in __archive_read_filter_ahead() local 1539 ssize_t bytes_read; in advance_file_pointer() local 1584 if (bytes_read < 0) { in advance_file_pointer() 1587 return (bytes_read); in advance_file_pointer() [all …]
|
| /freebsd-13.1/crypto/openssl/apps/ |
| H A D | s_time.c | 103 long bytes_read = 0, finishtime = 0; in s_time_main() local 219 bytes_read = 0; in s_time_main() 235 bytes_read += i; in s_time_main() 263 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 267 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main() 300 bytes_read = 0; in s_time_main() 316 bytes_read += i; in s_time_main() 340 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 343 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
|
| /freebsd-13.1/lib/libutil/ |
| H A D | uucplock.c | 211 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-13.1/sys/security/mac_veriexec_parser/ |
| H A D | mac_veriexec_parser.c | 263 ssize_t bytes_read, resid; in read_manifest() local 267 bytes_read = 0; in read_manifest() 279 while (bytes_read < va.va_size) { in read_manifest() 282 va.va_size - bytes_read, bytes_read, in read_manifest() 288 bytes_read = va.va_size - resid; in read_manifest() 291 data[bytes_read] = '\0'; in read_manifest()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 251 size_t &bytes_read) { in ReadWithTimeout() argument 252 bytes_read = 0; in ReadWithTimeout() 267 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout() 269 bytes_read += result; in ReadWithTimeout() 270 if (bytes_read == size || result == 0) in ReadWithTimeout()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_custom.cpp | 145 size_t bytes_read; in __dfsw_strchr() local 154 size_t bytes_read; in __dfso_strchr() local 216 *bytes_read = n; in dfsan_memcmp_bcmp() 239 size_t bytes_read; in dfsan_memcmp_bcmp_label() local 248 size_t bytes_read; in dfsan_memcmp_bcmp_origin() local 329 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local 341 size_t bytes_read; in __dfso_strcmp() local 368 size_t bytes_read; in __dfsw_strcasecmp() local 378 size_t bytes_read; in __dfso_strcasecmp() local 408 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/API/ |
| H A D | SBFile.cpp | 59 SBError SBFile::Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read) { in Read() argument 61 buf, num_bytes, bytes_read); in Read() 66 *bytes_read = 0; in Read() 70 *bytes_read = num_bytes; in Read()
|
| /freebsd-13.1/contrib/apr/file_io/unix/ |
| H A D | fullrw.c | 22 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()
|
| /freebsd-13.1/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() 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 …]
|