Searched refs:bytes_to_read (Results 1 - 17 of 17) sorted by relevance

/freebsd-current/contrib/diff/lib/
H A Dcmpbuf.c92 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-current/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_rw.c33 _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-current/contrib/diff/src/
H A Dcmp.c413 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 Ddiff3.c1239 size_t bytes_to_read = current_chunk_size - total;
1240 size_t bytes = block_read (fd, diff_result + total, bytes_to_read);
1242 if (bytes != bytes_to_read)
1235 size_t bytes_to_read = current_chunk_size - total; local
/freebsd-current/sys/dev/liquidio/base/
H A Dlio_console.c728 int bytes_to_read; local
748 bytes_to_read = lio_console_avail_bytes(console->buffer_size,
750 if (bytes_to_read <= 0)
751 return (bytes_to_read);
753 bytes_to_read = min(bytes_to_read, buf_size);
759 if (rd_idx + bytes_to_read >= console->buffer_size)
760 bytes_to_read = console->buffer_size - rd_idx;
763 (uint8_t *) buffer, bytes_to_read);
767 (rd_idx + bytes_to_read)
[all...]
/freebsd-current/contrib/libpcap/
H A Dsf-pcap.c601 size_t bytes_to_read, bytes_read; local
642 bytes_to_read = bytes_to_discard;
643 if (bytes_to_read > sizeof (discard_buf))
644 bytes_to_read = sizeof (discard_buf);
645 amt_read = fread(discard_buf, 1, bytes_to_read, fp);
647 if (amt_read != bytes_to_read) {
H A Dsf-pcapng.c258 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof, argument
263 amt_read = fread(buf, 1, bytes_to_read, fp);
264 if (amt_read != bytes_to_read) {
273 bytes_to_read, amt_read);
/freebsd-current/crypto/openssl/test/helpers/
H A Dhandshake.c728 int bytes_to_read; member in struct:peer_st
807 while (ret > 0 && peer->bytes_to_read) {
810 if (!TEST_int_le(ret, peer->bytes_to_read)) {
814 peer->bytes_to_read -= ret;
855 if (peer->bytes_to_write == 0 && peer->bytes_to_read == 0) {
892 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size;
1456 server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size;
1457 client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size;
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/
H A DProcessElfCore.cpp385 size_t bytes_to_read = size; // Number of bytes to read from the core file local
400 if (bytes_to_read > bytes_left)
401 bytes_to_read = bytes_left;
404 if (bytes_to_read)
406 core_objfile->CopyData(offset + file_start, bytes_to_read, buf);
/freebsd-current/contrib/ntp/sntp/libevent/
H A Dbufferevent_openssl.c739 bytes_to_read(struct bufferevent_openssl *bev) function
799 n_to_read = bytes_to_read(bev_ssl);
836 n_to_read = bytes_to_read(bev_ssl);
/freebsd-current/contrib/libevent/
H A Dbufferevent_openssl.c739 bytes_to_read(struct bufferevent_openssl *bev) function
799 n_to_read = bytes_to_read(bev_ssl);
836 n_to_read = bytes_to_read(bev_ssl);
/freebsd-current/contrib/elftoolchain/readelf/
H A Dreadelf.c404 int bytes_to_read);
406 int bytes_to_read);
407 static uint64_t _decode_lsb(uint8_t **data, int bytes_to_read);
408 static uint64_t _decode_msb(uint8_t **data, int bytes_to_read);
7634 _read_lsb(Elf_Data *d, uint64_t *offsetp, int bytes_to_read) argument
7642 switch (bytes_to_read) {
7660 *offsetp += bytes_to_read;
7666 _read_msb(Elf_Data *d, uint64_t *offsetp, int bytes_to_read) argument
7673 switch (bytes_to_read) {
7694 *offsetp += bytes_to_read;
7700 _decode_lsb(uint8_t **data, int bytes_to_read) argument
7732 _decode_msb(uint8_t **data, int bytes_to_read) argument
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_support_format_mtree.c1882 size_t bytes_to_read; local
1906 bytes_to_read = (size_t)(mtree->cur_size - mtree->offset);
1908 bytes_to_read = mtree->buffsize;
1909 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read);
H A Darchive_read_support_format_7zip.c881 size_t bytes_to_read = max_read_size; local
882 if ((uint64_t)bytes_to_read > zip->entry_bytes_remaining) {
883 bytes_to_read = zip->entry_bytes_remaining;
885 bytes = read_stream(a, buff, bytes_to_read, 0);
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DNativeProcessProtocol.cpp693 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); local
695 bytes_to_read, bytes_read);
/freebsd-current/contrib/llvm-project/lldb/source/Target/
H A DTarget.cpp2000 addr_t bytes_to_read = local
2002 size_t bytes_read = ReadMemory(address, curr_dst, bytes_to_read, error,
2014 if (len < bytes_to_read)
2067 addr_t bytes_to_read = local
2070 ReadMemory(address, curr_dst, bytes_to_read, error, force_live_memory);
H A DProcess.cpp2021 addr_t bytes_to_read =
2023 size_t bytes_read = ReadMemory(curr_addr, curr_dst, bytes_to_read, error);
2034 if (len < bytes_to_read)

Completed in 442 milliseconds