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

12

/freebsd-9.3-release/gnu/lib/libodialog/
H A Dtextbox.c36 static int hscroll = 0, fd, file_size, bytes_read, begin_reached = 1, variable
82 if ((bytes_read = read(fd, buf, BUF_SIZE)) == -1) {
86 buf[bytes_read] = '\0'; /* mark end of valid data */
171 if (fpos > bytes_read) { /* Yes, we have to read it in */
177 if ((bytes_read = read(fd, buf, BUF_SIZE)) == -1) {
182 buf[bytes_read] = '\0';
208 if ((bytes_read = read(fd, buf, BUF_SIZE)) == -1) {
213 buf[bytes_read] = '\0';
215 page = buf + bytes_read;
363 fpos -= bytes_read;
[all...]
/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Darchive_read_support_format_ar.c166 ssize_t bytes_read; local
186 if ((b = __archive_read_ahead(a, 60, &bytes_read)) == NULL)
439 ssize_t bytes_read; local
445 *buff = __archive_read_ahead(a, 1, &bytes_read);
446 if (bytes_read == 0) {
451 if (bytes_read < 0)
453 if (bytes_read > ar->entry_bytes_remaining)
454 bytes_read = (ssize_t)ar->entry_bytes_remaining;
455 *size = bytes_read;
457 ar->entry_offset += bytes_read;
[all...]
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) {
126 return (bytes_read);
H A Darchive_read_open_file.c112 ssize_t bytes_read; local
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
116 if (bytes_read < 0) {
119 return (bytes_read);
H A Darchive_write_set_compression_program.c267 ssize_t bytes_read, bytes_written; local
288 bytes_read = read(state->child_stdout,
291 } while (bytes_read == -1 && errno == EINTR);
293 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE))
296 if (bytes_read == -1) {
302 state->child_buf_avail += bytes_read;
H A Darchive_read_support_format_tar.c443 ssize_t bytes_read; local
453 bytes_read = gnu_sparse_10_read(a, tar);
454 tar->entry_bytes_remaining -= bytes_read;
455 if (bytes_read < 0)
456 return (bytes_read);
486 *buff = __archive_read_ahead(a, 1, &bytes_read);
487 if (bytes_read < 0)
494 if (bytes_read > tar->entry_bytes_remaining)
495 bytes_read = tar->entry_bytes_remaining;
498 if (tar->sparse_list->remaining < bytes_read)
1776 ssize_t bytes_read; local
1906 ssize_t bytes_read; local
1949 ssize_t remaining, bytes_read; local
2126 ssize_t bytes_read; local
[all...]
H A Darchive_read_open_filename.c160 ssize_t bytes_read; local
164 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
165 if (bytes_read < 0) {
174 return (bytes_read);
H A Darchive_read_support_format_cpio.c291 ssize_t bytes_read; local
296 *buff = __archive_read_ahead(a, 1, &bytes_read);
297 if (bytes_read <= 0)
299 if (bytes_read > cpio->entry_bytes_remaining)
300 bytes_read = cpio->entry_bytes_remaining;
301 *size = bytes_read;
303 cpio->entry_offset += bytes_read;
304 cpio->entry_bytes_remaining -= bytes_read;
305 __archive_read_consume(a, bytes_read);
309 *buff = __archive_read_ahead(a, 1, &bytes_read);
[all...]
H A Darchive_read.c576 size_t bytes_read; local
580 bytes_read = 0;
590 return (bytes_read);
622 bytes_read += len;
636 bytes_read += len;
639 return (bytes_read);
959 ssize_t bytes_read; local
1018 bytes_read = (filter->read)(filter,
1020 if (bytes_read < 0) { /* Read error. */
1028 if (bytes_read
1236 ssize_t bytes_read; local
[all...]
H A Darchive_read_support_format_mtree.c980 ssize_t bytes_read; local
1006 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read);
1007 if (bytes_read < 0) {
1011 if (bytes_read == 0) {
1015 mtree->offset += bytes_read;
1016 *size = bytes_read;
1240 ssize_t bytes_read; local
1251 t = __archive_read_ahead(a, 1, &bytes_read);
1254 if (bytes_read < 0)
1257 p = memchr(t, '\n', bytes_read);
[all...]
H A Darchive_read_support_format_iso9660.c474 ssize_t bytes_read; local
489 &bytes_read);
495 bytes_read -= RESERVED_AREA;
500 for (; bytes_read > LOGICAL_BLOCK_SIZE;
501 bytes_read -= LOGICAL_BLOCK_SIZE, p += LOGICAL_BLOCK_SIZE) {
1269 ssize_t bytes_read; local
1276 p = __archive_read_ahead(a, 1, &bytes_read);
1277 if (bytes_read <= 0) {
1282 if (bytes_read > iso9660->entry_bytes_remaining)
1283 bytes_read
1498 ssize_t bytes_read; local
[all...]
/freebsd-9.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-9.3-release/lib/libutil/
H A Duucplock.c211 int bytes_read; local
215 bytes_read = read (fd, buf, sizeof (buf) - 1);
216 if (bytes_read > 0) {
217 buf[bytes_read] = '\0';
221 *err = bytes_read ? errno : EINVAL;
/freebsd-9.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-9.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-9.3-release/crypto/openssl/apps/
H A Ds_time.c188 static long bytes_read = 0; variable
211 bytes_read = 0;
508 bytes_read = 0;
531 bytes_read += i;
565 nConn, totalTime, ((double)nConn / totalTime), bytes_read);
568 nConn, (long)time(NULL) - finishtime + maxTime, bytes_read / nConn);
603 bytes_read = 0;
626 bytes_read += i;
656 nConn, totalTime, ((double)nConn / totalTime), bytes_read);
659 nConn, (long)time(NULL) - finishtime + maxTime, bytes_read / nCon
[all...]
/freebsd-9.3-release/contrib/libarchive/libarchive_fe/
H A Dline_reader.c88 size_t bytes_wanted, bytes_read, new_buff_size; local
152 bytes_read = fread(lr->buff_end, 1, bytes_wanted, lr->f);
153 lr->buff_end += bytes_read;
/freebsd-9.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)
/freebsd-9.3-release/contrib/libarchive/tar/
H A Dwrite.c641 ssize_t bytes_read; local
645 bytes_read = archive_read_data(ina, bsdtar->buff, FILEDATABUFLEN);
646 while (bytes_read > 0) {
651 bytes_read);
652 if (bytes_written < bytes_read) {
657 bytes_read = archive_read_data(ina, bsdtar->buff,
1023 ssize_t bytes_read; local
1027 bytes_read = read(fd, bsdtar->buff, FILEDATABUFLEN);
1028 while (bytes_read > 0) {
1033 bytes_read);
[all...]
/freebsd-9.3-release/contrib/dialog/
H A Dtextbox.c42 long bytes_read; member in struct:__anon936
89 * buffer_len, fd_bytes_read, bytes_read are modified
93 * bytes_read is the length of buf, that can be different if tab_correct
111 /* calculate bytes_read by buftab and fd_bytes_read */
112 obj->bytes_read = begin_line = 0;
115 obj->bytes_read += dialog_state.tab_len
116 - ((obj->bytes_read - begin_line)
119 obj->bytes_read++;
120 begin_line = obj->bytes_read;
122 obj->bytes_read
[all...]
/freebsd-9.3-release/contrib/groff/src/devices/grolbp/
H A Dlbp.cpp374 int bytes_read = 1; local
380 bytes_read = fread(buffer, 1, sizeof(buffer), vdmoutput);
381 bytes_read = fwrite(buffer, 1, bytes_read, lbpoutput);
382 } while (bytes_read == sizeof(buffer));
/freebsd-9.3-release/usr.sbin/makefs/cd9660/
H A Dcd9660_write.c437 int bytes_read; local
459 bytes_read = fread(buf,1,buf_size,rf);
467 fwrite(buf,1,bytes_read,fd);

Completed in 172 milliseconds

12