Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 50) sorted by relevance

12

/dflybsd-src/contrib/binutils-2.27/binutils/
H A Ddwarf.c429 unsigned int bytes_read; in process_extended_line_op() local
435 len = read_uleb128 (data, & bytes_read, end); in process_extended_line_op()
436 data += bytes_read; in process_extended_line_op()
441 return bytes_read; in process_extended_line_op()
444 len += bytes_read; in process_extended_line_op()
458 if (len - bytes_read - 1 > 8) in process_extended_line_op()
461 len - bytes_read - 1); in process_extended_line_op()
465 SAFE_BYTE_GET (adr, data, len - bytes_read - 1, end); in process_extended_line_op()
478 printf ("%s\t", dwarf_vmatoa ("u", read_uleb128 (data, & bytes_read, end))); in process_extended_line_op()
479 data += bytes_read; in process_extended_line_op()
[all …]
/dflybsd-src/usr.sbin/daemon/
H A Ddaemon.c508 static size_t bytes_read = 0; in listen_child() local
512 assert(bytes_read < LBUF_SIZE - 1); in listen_child()
514 rv = read(fd, buf + bytes_read, LBUF_SIZE - bytes_read - 1); in listen_child()
518 bytes_read += rv; in listen_child()
519 assert(bytes_read <= LBUF_SIZE - 1); in listen_child()
526 while ((cp = memchr(buf, '\n', bytes_read)) != NULL) { in listen_child()
528 assert(bytes_line <= bytes_read); in listen_child()
530 bytes_read -= bytes_line; in listen_child()
531 memmove(buf, cp + 1, bytes_read); in listen_child()
534 if (bytes_read < LBUF_SIZE - 1) in listen_child()
[all …]
/dflybsd-src/contrib/gdb-7/gdb/
H A Ddwarf2expr.h303 size_t bytes_read = read_uleb128_to_uint64 (buf, buf_end, r); in gdb_read_uleb128() local
305 if (bytes_read == 0) in gdb_read_uleb128()
307 return buf + bytes_read; in gdb_read_uleb128()
314 size_t bytes_read = read_sleb128_to_int64 (buf, buf_end, r); in gdb_read_sleb128() local
316 if (bytes_read == 0) in gdb_read_sleb128()
318 return buf + bytes_read; in gdb_read_sleb128()
324 size_t bytes_read = skip_leb128 (buf, buf_end); in gdb_skip_leb128() local
326 if (bytes_read == 0) in gdb_skip_leb128()
328 return buf + bytes_read; in gdb_skip_leb128()
H A Ddwarf2read.c3913 unsigned int bytes_read; in read_comp_unit_head() local
3915 cu_header->length = read_initial_length (abfd, info_ptr, &bytes_read); in read_comp_unit_head()
3916 cu_header->initial_length_size = bytes_read; in read_comp_unit_head()
3917 cu_header->offset_size = (bytes_read == 4) ? 4 : 8; in read_comp_unit_head()
3918 info_ptr += bytes_read; in read_comp_unit_head()
3922 &bytes_read); in read_comp_unit_head()
3923 info_ptr += bytes_read; in read_comp_unit_head()
6212 unsigned int bytes_read; in peek_abbrev_code() local
6214 return read_unsigned_leb128 (abfd, info_ptr, &bytes_read); in peek_abbrev_code()
6223 peek_die_abbrev (gdb_byte *info_ptr, unsigned int *bytes_read, in peek_die_abbrev() argument
[all …]
/dflybsd-src/contrib/gdb-7/bfd/
H A Ddwarf2.c697 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
712 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
713 abbrev_ptr += bytes_read; in read_abbrevs()
726 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
727 abbrev_ptr += bytes_read; in read_abbrevs()
732 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
733 abbrev_ptr += bytes_read; in read_abbrevs()
734 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
735 abbrev_ptr += bytes_read; in read_abbrevs()
769 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
[all …]
/dflybsd-src/contrib/binutils-2.34/bfd/
H A Ddwarf2.c996 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
1024 abbrev_number = _bfd_safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, in read_abbrevs()
1026 abbrev_ptr += bytes_read; in read_abbrevs()
1039 _bfd_safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, in read_abbrevs()
1041 abbrev_ptr += bytes_read; in read_abbrevs()
1051 abbrev_name = _bfd_safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, in read_abbrevs()
1053 abbrev_ptr += bytes_read; in read_abbrevs()
1054 abbrev_form = _bfd_safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, in read_abbrevs()
1056 abbrev_ptr += bytes_read; in read_abbrevs()
1060 &bytes_read, TRUE, in read_abbrevs()
[all …]
/dflybsd-src/contrib/binutils-2.27/bfd/
H A Ddwarf2.c877 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
896 abbrev_number = safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, FALSE, abbrev_end); in read_abbrevs()
897 abbrev_ptr += bytes_read; in read_abbrevs()
910 safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, FALSE, abbrev_end); in read_abbrevs()
911 abbrev_ptr += bytes_read; in read_abbrevs()
916 abbrev_name = safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, FALSE, abbrev_end); in read_abbrevs()
917 abbrev_ptr += bytes_read; in read_abbrevs()
918 abbrev_form = safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, FALSE, abbrev_end); in read_abbrevs()
919 abbrev_ptr += bytes_read; in read_abbrevs()
953 abbrev_name = safe_read_leb128 (abfd, abbrev_ptr, &bytes_read, FALSE, abbrev_end); in read_abbrevs()
[all …]
/dflybsd-src/contrib/libarchive/libarchive/
H A Darchive_read_support_format_tar.c595 ssize_t bytes_read; in archive_read_format_tar_read_data() local
627 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_tar_read_data()
628 if (bytes_read < 0) in archive_read_format_tar_read_data()
635 if (bytes_read > tar->entry_bytes_remaining) in archive_read_format_tar_read_data()
636 bytes_read = (ssize_t)tar->entry_bytes_remaining; in archive_read_format_tar_read_data()
639 if (tar->sparse_list->remaining < bytes_read) in archive_read_format_tar_read_data()
640 bytes_read = (ssize_t)tar->sparse_list->remaining; in archive_read_format_tar_read_data()
641 *size = bytes_read; in archive_read_format_tar_read_data()
643 tar->sparse_list->remaining -= bytes_read; in archive_read_format_tar_read_data()
644 tar->sparse_list->offset += bytes_read; in archive_read_format_tar_read_data()
[all …]
H A Darchive_read_support_format_ar.c484 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 Darchive_write_add_filter_program.c334 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 Darchive_read_open_file.c112 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 Darchive_read.c828 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
1389 bytes_read = (filter->vtable->read)(filter, in __archive_read_filter_ahead()
1391 if (bytes_read < 0) { /* Read error. */ in __archive_read_filter_ahead()
1400 if (bytes_read == 0) { in __archive_read_filter_ahead()
[all …]
H A Darchive_read_open_fd.c116 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 Darchive_read_support_format_mtree.c1868 ssize_t bytes_read; in read_data() local
1894 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read); in read_data()
1895 if (bytes_read < 0) { in read_data()
1899 if (bytes_read == 0) { in read_data()
1903 mtree->offset += bytes_read; in read_data()
1904 *size = bytes_read; in read_data()
2077 ssize_t bytes_read; in readline() local
2087 t = __archive_read_ahead(a, 1, &bytes_read); in readline()
2090 if (bytes_read < 0) in readline()
2092 nl = memchr(t, '\n', bytes_read); in readline()
[all …]
H A Darchive_read_support_format_iso9660.c498 ssize_t bytes_read; in archive_read_format_iso9660_bid() local
517 &bytes_read); in archive_read_format_iso9660_bid()
522 bytes_read -= RESERVED_AREA; in archive_read_format_iso9660_bid()
527 for (; bytes_read > LOGICAL_BLOCK_SIZE; in archive_read_format_iso9660_bid()
528 bytes_read -= LOGICAL_BLOCK_SIZE, p += LOGICAL_BLOCK_SIZE) { in archive_read_format_iso9660_bid()
1418 ssize_t bytes_read; in zisofs_read_data() local
1425 p = __archive_read_ahead(a, 1, &bytes_read); in zisofs_read_data()
1426 if (bytes_read <= 0) { in zisofs_read_data()
1431 if (bytes_read > iso9660->entry_bytes_remaining) in zisofs_read_data()
1432 bytes_read = (ssize_t)iso9660->entry_bytes_remaining; in zisofs_read_data()
[all …]
H A Darchive_read_support_format_cpio.c462 ssize_t bytes_read; in archive_read_format_cpio_read_data() local
473 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_cpio_read_data()
474 if (bytes_read <= 0) in archive_read_format_cpio_read_data()
476 if (bytes_read > cpio->entry_bytes_remaining) in archive_read_format_cpio_read_data()
477 bytes_read = (ssize_t)cpio->entry_bytes_remaining; in archive_read_format_cpio_read_data()
478 *size = bytes_read; in archive_read_format_cpio_read_data()
479 cpio->entry_bytes_unconsumed = bytes_read; in archive_read_format_cpio_read_data()
481 cpio->entry_offset += bytes_read; in archive_read_format_cpio_read_data()
482 cpio->entry_bytes_remaining -= bytes_read; in archive_read_format_cpio_read_data()
H A Darchive_read_open_filename.c391 ssize_t bytes_read; in file_read() local
408 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
409 if (bytes_read < 0) { in file_read()
422 return (bytes_read); in file_read()
/dflybsd-src/lib/libutil/
H A Duucplock.c210 int bytes_read; in get_pid() local
214 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
215 if (bytes_read > 0) { in get_pid()
216 buf[bytes_read] = '\0'; in get_pid()
220 *err = bytes_read ? errno : EINVAL; in get_pid()
/dflybsd-src/sbin/vinum/
H A Dlist.c230 (long long) drive.bytes_read, in vinum_ldi()
231 roughlength(drive.bytes_read, 1)); in vinum_ldi()
234 (long long) drive.bytes_read / drive.reads); in vinum_ldi()
246 (long long) drive.bytes_read); in vinum_ldi()
249 (long long) (drive.bytes_read / drive.reads)); in vinum_ldi()
331 (long long) vol.bytes_read, in vinum_lvi()
332 roughlength(vol.bytes_read, 1)); in vinum_lvi()
335 (long long) (vol.bytes_read / vol.reads)); in vinum_lvi()
348 (long long) vol.bytes_read); in vinum_lvi()
351 (long long) (vol.bytes_read / vol.reads)); in vinum_lvi()
[all …]
/dflybsd-src/contrib/dialog/
H A Dtextbox.c42 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()
156 if (obj->bytes_read > obj->buffer_len) { in read_high()
163 obj->buffer_len = obj->bytes_read; in read_high()
177 obj->bytes_read = obj->fd_bytes_read; in read_high()
[all …]
/dflybsd-src/contrib/lvm2/dist/lib/device/
H A Ddevice.c191 ssize_t bytes_read = 0;
227 bytes_read = 0;
235 while ((bytes_read < SECTOR_SIZE) &&
237 read(pv_handle, buffer + bytes_read,
238 SECTOR_SIZE - bytes_read)) != -1)
239 bytes_read += read_ret;
/dflybsd-src/crypto/libressl/apps/openssl/
H A Ds_time.c99 static long bytes_read = 0; variable
387 bytes_read += i; in run_test()
435 bytes_read = 0; in benchmark()
459 nConn, totalTime, ((double) nConn / totalTime), bytes_read); in benchmark()
461 nConn, elapsed, nConn > 0 ? bytes_read / nConn : 0); in benchmark()
/dflybsd-src/contrib/libarchive/libarchive_fe/
H A Dline_reader.c94 size_t bytes_wanted, bytes_read, new_buff_size; in lafe_line_reader_next() local
147 bytes_read = fread(lr->buff_end, 1, bytes_wanted, lr->f); in lafe_line_reader_next()
148 lr->buff_end += bytes_read; in lafe_line_reader_next()
/dflybsd-src/sys/dev/raid/vinum/
H A Dvinumvar.h458 u_int64_t bytes_read; /* number of bytes read */ member
516 u_int64_t bytes_read; /* number of bytes read */ member
571 u_int64_t bytes_read; /* number of bytes read */ member
624 u_int64_t bytes_read; /* number of bytes read */ member
H A Dvinuminterrupt.c144 DRIVE[rqe->driveno].bytes_read += bp->b_bcount; in complete_rqe()
146 SD[rqe->sdno].bytes_read += bp->b_bcount; in complete_rqe()
148 PLEX[rqe->rqg->plexno].bytes_read += bp->b_bcount; in complete_rqe()
151 VOL[PLEX[rqe->rqg->plexno].volno].bytes_read += bp->b_bcount; in complete_rqe()
285 DRIVE[sbp->driveno].bytes_read += sbp->b.b_bcount; in sdio_done()
287 SD[sbp->sdno].bytes_read += sbp->b.b_bcount; in sdio_done()

12