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

1234

/freebsd-10-stable/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...]
H A Dtest_sparse_basic.c330 size_t bytes_read; local
341 while (ARCHIVE_OK == archive_read_data_block(a, &buff, &bytes_read,
345 fprintf(stderr, "%s: bytes_read=%d offset=%d\n", path, (int)bytes_read, (int)offset);
362 && expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) {
376 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) {
384 if (end > (const char *)buff + bytes_read) {
385 end = (const char *)buff + bytes_read;
396 if (assert(expected_offset + sparse->size <= offset + bytes_read)) {
408 if (expected_offset < offset + (int64_t)bytes_read) {
[all...]
/freebsd-10-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/contrib/libarchive/libarchive/
H A Darchive_read_open_fd.c116 ssize_t bytes_read; local
120 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
121 if (bytes_read < 0) {
127 return (bytes_read);
H A Darchive_read_open_file.c112 size_t bytes_read; local
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
116 if (bytes_read < mine->block_size && ferror(mine->f)) {
119 return (bytes_read);
H A Darchive_read_support_format_ar.c484 ssize_t bytes_read; local
495 *buff = __archive_read_ahead(a, 1, &bytes_read);
496 if (bytes_read == 0) {
501 if (bytes_read < 0)
503 if (bytes_read > ar->entry_bytes_remaining)
504 bytes_read = (ssize_t)ar->entry_bytes_remaining;
505 *size = bytes_read;
506 ar->entry_bytes_unconsumed = bytes_read;
508 ar->entry_offset += bytes_read;
509 ar->entry_bytes_remaining -= bytes_read;
[all...]
H A Darchive_write_add_filter_program.c334 ssize_t bytes_read; local
346 bytes_read = read(data->child_stdout,
349 } while (bytes_read == -1 && errno == EINTR);
351 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE))
354 if (bytes_read == -1) {
360 data->child_buf_avail += bytes_read;
H A Darchive_read_support_format_tar.c591 ssize_t bytes_read; local
623 *buff = __archive_read_ahead(a, 1, &bytes_read);
624 if (bytes_read < 0)
631 if (bytes_read > tar->entry_bytes_remaining)
632 bytes_read = (ssize_t)tar->entry_bytes_remaining;
635 if (tar->sparse_list->remaining < bytes_read)
636 bytes_read = (ssize_t)tar->sparse_list->remaining;
637 *size = bytes_read;
639 tar->sparse_list->remaining -= bytes_read;
640 tar->sparse_list->offset += bytes_read;
851 ssize_t bytes_read; local
2323 ssize_t bytes_read; local
2461 ssize_t bytes_read; local
2505 ssize_t bytes_read; local
2741 ssize_t bytes_read; local
[all...]
/freebsd-10-stable/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-stable/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-stable/contrib/subversion/subversion/libsvn_diff/
H A Dbinary_diff.c44 svn_filesize_t bytes_read = 0; local
67 bytes_read += rd;
79 *full_size = bytes_read;
/freebsd-10-stable/contrib/libarchive/libarchive_fe/
H A Dline_reader.c94 size_t bytes_wanted, bytes_read, new_buff_size; local
147 bytes_read = fread(lr->buff_end, 1, bytes_wanted, lr->f);
148 lr->buff_end += bytes_read;
/freebsd-10-stable/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-stable/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 401 milliseconds

1234