Searched refs:bytes_read (Results 1 - 25 of 86) sorted by relevance

1234

/freebsd-10.3-release/contrib/libarchive/libarchive/test/
H A Dtest_compat_solaris_pax_sparse.c40 size_t bytes_read; local
80 archive_read_data_block(a, &buff, &bytes_read, &offset)) {
82 assert((offset >= 0 && offset + bytes_read <= 131072) ||
83 (offset >= 393216 && offset + bytes_read <= 393216+131072) ||
84 (offset >= 786432 && offset + bytes_read <= 786432+32775));
85 if (offset == 0 && bytes_read >= 1024*8) {
89 } else if (offset + bytes_read == 819207 && bytes_read >= 7) {
91 last += bytes_read - 7;
121 size_t bytes_read; local
[all...]
/freebsd-10.3-release/contrib/apr/file_io/unix/
H A Dfullrw.c22 apr_size_t *bytes_read)
36 if (bytes_read != NULL)
37 *bytes_read = total_read;
H A Dreadwrite.c88 apr_size_t bytes_read; local
102 bytes_read = 0;
104 bytes_read = 1;
110 *nbytes = bytes_read;
124 *nbytes = bytes_read;
134 *nbytes = bytes_read;
/freebsd-10.3-release/contrib/libarchive/libarchive/
H A Darchive_read_open_fd.c114 ssize_t bytes_read; local
118 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
119 if (bytes_read < 0) {
125 return (bytes_read);
H A Darchive_read_open_file.c111 size_t bytes_read; local
114 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
115 if (bytes_read < mine->block_size && ferror(mine->f)) {
118 return (bytes_read);
H A Darchive_read_support_format_ar.c472 ssize_t bytes_read; local
483 *buff = __archive_read_ahead(a, 1, &bytes_read);
484 if (bytes_read == 0) {
489 if (bytes_read < 0)
491 if (bytes_read > ar->entry_bytes_remaining)
492 bytes_read = (ssize_t)ar->entry_bytes_remaining;
493 *size = bytes_read;
494 ar->entry_bytes_unconsumed = bytes_read;
496 ar->entry_offset += bytes_read;
497 ar->entry_bytes_remaining -= bytes_read;
[all...]
H A Darchive_write_add_filter_program.c354 ssize_t bytes_read; local
366 bytes_read = read(data->child_stdout,
369 } while (bytes_read == -1 && errno == EINTR);
371 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE))
374 if (bytes_read == -1) {
380 data->child_buf_avail += bytes_read;
H A Darchive_read_support_format_tar.c526 ssize_t bytes_read; local
558 *buff = __archive_read_ahead(a, 1, &bytes_read);
559 if (bytes_read < 0)
566 if (bytes_read > tar->entry_bytes_remaining)
567 bytes_read = (ssize_t)tar->entry_bytes_remaining;
570 if (tar->sparse_list->remaining < bytes_read)
571 bytes_read = (ssize_t)tar->sparse_list->remaining;
572 *size = bytes_read;
574 tar->sparse_list->remaining -= bytes_read;
575 tar->sparse_list->offset += bytes_read;
762 ssize_t bytes_read; local
2145 ssize_t bytes_read; local
2283 ssize_t bytes_read; local
2327 ssize_t bytes_read; local
2536 ssize_t bytes_read; local
[all...]
H A Darchive_read.c770 size_t bytes_read; local
774 bytes_read = 0;
786 return (bytes_read);
818 bytes_read += len;
832 bytes_read += len;
837 return (bytes_read);
1219 ssize_t bytes_read; local
1279 bytes_read = (filter->read)(filter,
1281 if (bytes_read < 0) { /* Read error. */
1290 if (bytes_read
1429 ssize_t bytes_read; local
[all...]
/freebsd-10.3-release/contrib/binutils/binutils/
H A Ddwarf.c227 unsigned int bytes_read; local
232 len = read_leb128 (data, & bytes_read, 0);
233 data += bytes_read;
238 return bytes_read;
241 len += bytes_read;
254 adr = byte_get (data, len - bytes_read - 1);
266 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
267 data += bytes_read;
268 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
269 data += bytes_read;
413 unsigned int bytes_read; local
589 unsigned int bytes_read; local
939 unsigned int bytes_read; local
1692 unsigned int bytes_read; local
1939 unsigned int bytes_read; local
1967 unsigned int bytes_read; local
2177 unsigned int bytes_read; local
[all...]
/freebsd-10.3-release/lib/libutil/
H A Duucplock.c212 int bytes_read; local
216 bytes_read = read (fd, buf, sizeof (buf) - 1);
217 if (bytes_read > 0) {
218 buf[bytes_read] = '\0';
222 *err = bytes_read ? errno : EINVAL;
/freebsd-10.3-release/crypto/openssl/apps/
H A Ds_time.c137 static long bytes_read = 0; variable
160 bytes_read = 0;
406 bytes_read = 0;
429 bytes_read += i;
463 nConn, totalTime, ((double)nConn / totalTime), bytes_read);
466 nConn, (long)time(NULL) - finishtime + maxTime, bytes_read / nConn);
501 bytes_read = 0;
524 bytes_read += i;
554 nConn, totalTime, ((double)nConn / totalTime), bytes_read);
558 bytes_read / (nCon
[all...]
/freebsd-10.3-release/contrib/binutils/bfd/
H A Ddwarf2.c429 unsigned int abbrev_number, bytes_read, abbrev_name; local
465 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
466 abbrev_ptr += bytes_read;
477 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
478 abbrev_ptr += bytes_read;
483 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
484 abbrev_ptr += bytes_read;
485 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
486 abbrev_ptr += bytes_read;
520 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
558 unsigned int bytes_read; local
976 unsigned int i, bytes_read, offset_size; local
1568 unsigned int abbrev_number, bytes_read, i; local
1678 unsigned int abbrev_number, bytes_read, i; local
1906 unsigned int abbrev_number, bytes_read, i; local
[all...]
/freebsd-10.3-release/contrib/gdb/gdb/
H A Ddwarf2expr.h94 int *bytes_read);
H A Ddwarf2read.c704 int *bytes_read);
707 struct comp_unit_head *, int *bytes_read);
710 int *bytes_read);
1099 int bytes_read;
1102 &bytes_read);
1103 pubnames_ptr += bytes_read;
1126 int bytes_read; local
1128 &bytes_read);
1129 info_ptr += bytes_read;
1133 &bytes_read);
4261 unsigned int abbrev_number, bytes_read, abbrev_name; local
4381 unsigned int abbrev_number, bytes_read, i; local
4524 unsigned int abbrev_number, bytes_read, i, offset; local
4578 unsigned int bytes_read; local
4749 read_address(bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read) argument
4841 read_initial_length(bfd *abfd, char *buf, struct comp_unit_head *cu_header, int *bytes_read) argument
4887 read_offset(bfd *abfd, char *buf, const struct comp_unit_head *cu_header, int *bytes_read) argument
5201 int bytes_read; local
5349 unsigned int bytes_read; local
7455 unsigned int bytes_read, unsnd; local
7965 int bytes_read; local
7993 int bytes_read; local
8044 int bytes_read; local
[all...]
H A Ddwarf2expr.c173 dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read) argument
180 *bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT;
241 int bytes_read;
281 result = dwarf2_read_address (op_ptr, op_end, &bytes_read);
282 op_ptr += bytes_read;
498 int bytes_read;
505 &bytes_read);
512 int bytes_read;
518 &bytes_read);
240 int bytes_read; local
497 int bytes_read; local
511 int bytes_read; local
H A Ddwarf2-frame.c276 int bytes_read;
307 fs->pc = dwarf2_read_address (insn_ptr, insn_end, &bytes_read);
308 insn_ptr += bytes_read;
1245 unsigned int bytes_read;
1252 length = read_initial_length (unit->abfd, buf, &bytes_read);
1253 buf += bytes_read;
1264 dwarf64_p = (bytes_read == 12);
1329 read_unsigned_leb128 (unit->abfd, buf, &bytes_read);
1330 buf += bytes_read;
1333 read_signed_leb128 (unit->abfd, buf, &bytes_read);
273 int bytes_read; local
1236 unsigned int bytes_read; local
[all...]
/freebsd-10.3-release/contrib/llvm/tools/lldb/source/Core/
H A DConnectionFileDescriptor.cpp467 ssize_t bytes_read = 0;
475 bytes_read = ::read (m_fd_recv, dst, dst_len);
480 bytes_read = ::recv (m_fd_recv, (char*)dst, dst_len, 0);
483 bytes_read = -1;
489 } while (bytes_read < 0 && errno == EINTR);
496 if (bytes_read == 0)
501 else if (bytes_read < 0)
516 (int64_t)bytes_read,
573 return bytes_read;
826 ssize_t bytes_read; local
[all...]
H A DCommunication.cpp363 size_t bytes_read = comm->ReadFromConnection (buf, sizeof(buf), 5 * TimeValue::MicroSecPerSec, status, &error); local
364 if (bytes_read > 0)
365 comm->AppendBytesToCache (buf, bytes_read, true, status);
366 else if ((bytes_read == 0)
371 comm->AppendBytesToCache (buf, bytes_read, true, status);
/freebsd-10.3-release/contrib/llvm/tools/lldb/source/Host/common/
H A DFile.cpp592 ssize_t bytes_read = -1; local
597 bytes_read = ::read (m_descriptor, buf, num_bytes);
598 } while (bytes_read < 0 && errno == EINTR);
600 if (bytes_read == -1)
606 num_bytes = bytes_read;
610 bytes_read = ::fread (buf, 1, num_bytes, m_stream);
612 if (bytes_read == 0)
621 num_bytes = bytes_read;
684 ssize_t bytes_read = -1; local
687 bytes_read
[all...]
/freebsd-10.3-release/contrib/libarchive/libarchive_fe/
H A Dline_reader.c95 size_t bytes_wanted, bytes_read, new_buff_size; local
148 bytes_read = fread(lr->buff_end, 1, bytes_wanted, lr->f);
149 lr->buff_end += bytes_read;
/freebsd-10.3-release/contrib/llvm/tools/lldb/source/API/
H A DSBProcess.cpp353 size_t bytes_read = 0; local
358 bytes_read = process_sp->GetSTDOUT (dst, dst_len, error);
365 (int) bytes_read,
368 (uint64_t)bytes_read);
370 return bytes_read;
376 size_t bytes_read = 0; local
381 bytes_read = process_sp->GetSTDERR (dst, dst_len, error);
388 (int) bytes_read,
391 (uint64_t)bytes_read);
393 return bytes_read;
399 size_t bytes_read = 0; local
1023 size_t bytes_read = 0; local
1077 size_t bytes_read = 0; local
[all...]
H A DSBCommunication.cpp147 size_t bytes_read = 0; local
149 bytes_read = m_opaque->Read (dst, dst_len, timeout_usec, status, NULL);
160 (uint64_t)bytes_read);
161 return bytes_read;
/freebsd-10.3-release/contrib/subversion/subversion/libsvn_fs_base/bdb/
H A Dstrings-table.c206 apr_size_t length, bytes_read = 0;
240 result.data = buf + bytes_read;
241 result.ulen = *len - bytes_read;
243 result.dlen = *len - bytes_read;
252 bytes_read += result.size;
253 if (bytes_read == *len)
273 *len = bytes_read;
204 apr_size_t length, bytes_read = 0; local
/freebsd-10.3-release/contrib/texinfo/info/
H A Dfilesys.c561 int bytes_read; local
563 bytes_read = fread (chunk, 1, FILESYS_PIPE_BUFFER_SIZE, stream);
565 if (bytes_read + offset >= size)
569 memcpy (contents + offset, chunk, bytes_read);
570 offset += bytes_read;
571 if (bytes_read != FILESYS_PIPE_BUFFER_SIZE)

Completed in 201 milliseconds

1234