/freebsd-11-stable/contrib/diff/lib/ |
H A D | cmpbuf.c | 92 size_t bytes_to_read = MIN (buflim - bp, readlim); local 93 ssize_t nread = read (fd, bp, bytes_to_read); 101 if (errno == EINVAL && INT_MAX < bytes_to_read)
|
/freebsd-11-stable/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_rw.c | 33 _dwarf_read_lsb(uint8_t *data, uint64_t *offsetp, int bytes_to_read) argument 41 switch (bytes_to_read) { 59 *offsetp += bytes_to_read; 65 _dwarf_decode_lsb(uint8_t **data, int bytes_to_read) argument 73 switch (bytes_to_read) { 91 *data += bytes_to_read; 97 _dwarf_read_msb(uint8_t *data, uint64_t *offsetp, int bytes_to_read) argument 104 switch (bytes_to_read) { 125 *offsetp += bytes_to_read; 131 _dwarf_decode_msb(uint8_t **data, int bytes_to_read) argument [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | octeon-pci-console.c | 203 int bytes_to_read = octeon_pci_console_buffer_avail_bytes(console_buffer_size, wr_idx, rd_idx); local 204 if (bytes_to_read <= 0) 205 return bytes_to_read; 208 bytes_to_read = MIN(bytes_to_read, buf_size); 210 if (rd_idx + bytes_to_read >= console_buffer_size) 211 bytes_to_read = console_buffer_size - rd_idx; 214 octeon_pci_read_mem(buffer, base_addr + rd_idx, bytes_to_read,OCTEON_PCI_ENDIAN_64BIT_SWAP); 215 octeon_write_mem32(console_addr + offsetof(octeon_pci_console_t, output_read_index), (rd_idx + bytes_to_read)%console_buffer_size); 217 return bytes_to_read; [all...] |
/freebsd-11-stable/contrib/diff/src/ |
H A D | cmp.c | 413 size_t bytes_to_read = MIN (ig, buf_size); 414 size_t r = block_read (file_desc[f], buf0, bytes_to_read); 415 if (r != bytes_to_read) 429 size_t bytes_to_read = buf_size; 433 if (remaining < bytes_to_read) 434 bytes_to_read = remaining; 435 remaining -= bytes_to_read; 438 read0 = block_read (file_desc[0], buf0, bytes_to_read); 441 read1 = block_read (file_desc[1], buf1, bytes_to_read); 409 size_t bytes_to_read = MIN (ig, buf_size); local 425 size_t bytes_to_read = buf_size; local
|
H A D | diff3.c | 1240 size_t bytes_to_read = current_chunk_size - total; 1241 size_t bytes = block_read (fd, diff_result + total, bytes_to_read); 1243 if (bytes != bytes_to_read) 1236 size_t bytes_to_read = current_chunk_size - total; local
|
/freebsd-11-stable/sys/dev/liquidio/base/ |
H A D | lio_console.c | 729 int bytes_to_read; local 749 bytes_to_read = lio_console_avail_bytes(console->buffer_size, 751 if (bytes_to_read <= 0) 752 return (bytes_to_read); 754 bytes_to_read = min(bytes_to_read, buf_size); 760 if (rd_idx + bytes_to_read >= console->buffer_size) 761 bytes_to_read = console->buffer_size - rd_idx; 764 (uint8_t *) buffer, bytes_to_read); 768 (rd_idx + bytes_to_read) [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
H A D | recovery.c | 121 apr_size_t bytes_to_read = *len; local 130 if ((apr_int64_t)bytes_to_read > (apr_int64_t)b->remaining) 131 bytes_to_read = (apr_size_t)b->remaining; 132 b->remaining -= bytes_to_read; 134 return svn_stream_read_full(b->stream, buffer, &bytes_to_read);
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | sf-pcap.c | 597 size_t bytes_to_read, bytes_read; local 638 bytes_to_read = bytes_to_discard; 639 if (bytes_to_read > sizeof (discard_buf)) 640 bytes_to_read = sizeof (discard_buf); 641 amt_read = fread(discard_buf, 1, bytes_to_read, fp); 643 if (amt_read != bytes_to_read) {
|
H A D | sf-pcapng.c | 255 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof, argument 260 amt_read = fread(buf, 1, bytes_to_read, fp); 261 if (amt_read != bytes_to_read) { 270 bytes_to_read, amt_read);
|
/freebsd-11-stable/sys/mips/atheros/ |
H A D | ar71xx_pci.c | 133 uint32_t bytes_to_read = 0; local 136 bytes_to_read = 0; 138 bytes_to_read = (~(1 << (reg % 4))) & 0xf; 140 bytes_to_read = (~(3 << (reg % 4))) & 0xf; 144 return (bytes_to_read);
|
/freebsd-11-stable/contrib/groff/src/libs/libbib/ |
H A D | index.cpp | 176 int bytes_to_read = size; local 177 while (bytes_to_read > 0) { 178 int nread = read(fd, ptr, bytes_to_read); 187 bytes_to_read -= nread;
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/ |
H A D | ProcessElfCore.cpp | 351 size_t bytes_to_read = size; // Number of bytes to read from the core file local 369 if (bytes_to_read > bytes_left) { 370 zero_fill_size = bytes_to_read - bytes_left; 371 bytes_to_read = bytes_left; 375 if (bytes_to_read) 377 core_objfile->CopyData(offset + file_start, bytes_to_read, buf);
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | NativeProcessProtocol.cpp | 684 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); local 686 bytes_to_read, bytes_read);
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | bufferevent_openssl.c | 729 bytes_to_read(struct bufferevent_openssl *bev) function 789 n_to_read = bytes_to_read(bev_ssl); 826 n_to_read = bytes_to_read(bev_ssl);
|
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_mtree.c | 1865 size_t bytes_to_read; local 1889 bytes_to_read = (size_t)(mtree->cur_size - mtree->offset); 1891 bytes_to_read = mtree->buffsize; 1892 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read);
|
H A D | archive_read_support_format_7zip.c | 812 size_t bytes_to_read = max_read_size; local 813 if ((uint64_t)bytes_to_read > zip->entry_bytes_remaining) { 814 bytes_to_read = zip->entry_bytes_remaining; 816 bytes = read_stream(a, buff, bytes_to_read, 0);
|
/freebsd-11-stable/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 392 int bytes_to_read); 394 int bytes_to_read); 395 static uint64_t _decode_lsb(uint8_t **data, int bytes_to_read); 396 static uint64_t _decode_msb(uint8_t **data, int bytes_to_read); 7522 _read_lsb(Elf_Data *d, uint64_t *offsetp, int bytes_to_read) argument 7530 switch (bytes_to_read) { 7548 *offsetp += bytes_to_read; 7554 _read_msb(Elf_Data *d, uint64_t *offsetp, int bytes_to_read) argument 7561 switch (bytes_to_read) { 7582 *offsetp += bytes_to_read; 7588 _decode_lsb(uint8_t **data, int bytes_to_read) argument 7620 _decode_msb(uint8_t **data, int bytes_to_read) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Target/ |
H A D | Process.cpp | 1998 addr_t bytes_to_read = 2000 size_t bytes_read = ReadMemory(curr_addr, curr_dst, bytes_to_read, error); 2046 addr_t bytes_to_read = 2048 size_t bytes_read = ReadMemory(curr_addr, curr_dst, bytes_to_read, error); 2059 if (len < bytes_to_read)
|
H A D | Target.cpp | 1851 addr_t bytes_to_read = local 1854 ReadMemory(address, false, curr_dst, bytes_to_read, error); 1865 if (len < bytes_to_read)
|