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

12

/haiku-fatelf/src/system/libroot/posix/glibc/libio/
H A Diofread_u.c41 _IO_size_t bytes_read; local
45 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
46 return bytes_requested == bytes_read ? count : bytes_read / size;
H A Diofread.c38 _IO_size_t bytes_read; local
44 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
47 return bytes_requested == bytes_read ? count : bytes_read / size;
/haiku-fatelf/src/add-ons/media/plugins/mov_reader/libMOV/
H A DMOVAtom.cpp147 uint32 bytes_read; local
149 bytes_read = getStream()->Read(value,sizeof(uint64));
151 // Assert((bytes_read == sizeof(uint64),"Read Error");
158 uint32 bytes_read; local
160 bytes_read = getStream()->Read(value,sizeof(uint32));
162 // Assert((bytes_read == sizeof(uint32),"Read Error");
169 uint32 bytes_read; local
171 bytes_read = getStream()->Read(value,sizeof(uint16));
173 // Assert((bytes_read == sizeof(uint16),"Read Error");
180 uint32 bytes_read; local
189 uint32 bytes_read; local
198 uint32 bytes_read; local
[all...]
/haiku-fatelf/src/bin/coreutils/src/
H A Dwc.c191 size_t bytes_read;
241 while ((bytes_read = safe_read (fd, buf, BUFFER_SIZE)) > 0)
243 if (bytes_read == SAFE_READ_ERROR)
249 bytes += bytes_read;
257 while ((bytes_read = safe_read (fd, buf, BUFFER_SIZE)) > 0)
261 if (bytes_read == SAFE_READ_ERROR)
268 while ((p = memchr (p, '\n', (buf + bytes_read) - p)))
273 bytes += bytes_read;
297 while ((bytes_read = safe_read (fd, buf + prev, BUFFER_SIZE - prev)) > 0)
303 if (bytes_read
190 size_t bytes_read; local
[all...]
H A Dhead.c601 size_t bytes_read; local
604 /* Set `bytes_read' to the size of the last, probably partial, buffer;
605 0 < `bytes_read' <= `BUFSIZ'. */
606 bytes_read = (pos - start_pos) % BUFSIZ;
607 if (bytes_read == 0)
608 bytes_read = BUFSIZ;
611 pos -= bytes_read;
619 bytes_read = safe_read (fd, buffer, bytes_read);
620 if (bytes_read
746 size_t bytes_read; local
771 size_t bytes_read = safe_read (fd, buffer, BUFSIZ); local
[all...]
H A Dtee.c140 ssize_t bytes_read; local
182 bytes_read = read (0, buffer, sizeof buffer);
184 if (bytes_read < 0 && errno == EINTR)
187 if (bytes_read <= 0)
194 && fwrite (buffer, bytes_read, 1, descriptors[i]) != 1)
202 if (bytes_read == -1)
H A Dtail.c403 size_t bytes_read = safe_read (fd, buffer, n); local
404 if (bytes_read == SAFE_READ_ERROR)
411 if (bytes_read == 0)
413 xwrite_stdout (buffer, bytes_read);
414 n_written += bytes_read;
417 n_remaining -= bytes_read;
477 size_t bytes_read; local
483 /* Set `bytes_read' to the size of the last, probably partial, buffer;
484 0 < `bytes_read' <= `BUFSIZ'. */
485 bytes_read
808 size_t bytes_read = safe_read (fd, buffer, BUFSIZ); local
846 size_t bytes_read = safe_read (fd, buffer, BUFSIZ); local
1091 uintmax_t bytes_read; local
1294 uintmax_t bytes_read = dump_remainder (name, fspec->fd, COPY_TO_EOF); local
[all...]
H A Dsum.c184 size_t bytes_read = safe_read (fd, buf, sizeof buf); local
186 if (bytes_read == 0)
189 if (bytes_read == SAFE_READ_ERROR)
197 for (i = 0; i < bytes_read; i++)
199 total_bytes += bytes_read;
H A Dtac-pipe.c63 size_t bytes_read; local
73 bytes_read = full_read (STDIN_FILENO, buf, BUFFER_SIZE);
74 if (bytes_read != buffer_size && errno != 0)
80 bp.one_past_end = buf + bytes_read;
84 if (bytes_read != 0)
85 last_byte_is_eol_byte = (buf[bytes_read - 1] == eol_byte);
87 if (bytes_read < BUFFER_SIZE)
H A Dcksum.c187 size_t bytes_read;
209 while ((bytes_read = fread (buf, 1, BUFLEN, fp)) > 0)
213 if (length + bytes_read < length)
215 length += bytes_read;
216 while (bytes_read--)
186 size_t bytes_read; local
H A Dtac.c476 size_t bytes_read = safe_read (input_fd, G_buffer, read_size); local
477 if (bytes_read == 0)
479 if (bytes_read == SAFE_READ_ERROR)
485 if (fwrite (G_buffer, 1, bytes_read, tmp) != bytes_read)
H A Dtr.c1625 size_t bytes_read = plain_read (buf, size);
1628 for (i = 0; i < bytes_read; i++)
1631 return bytes_read;
1883 size_t bytes_read = read_and_xlate (io_buf, sizeof io_buf);
1884 if (bytes_read == 0)
1886 if (fwrite (io_buf, 1, bytes_read, stdout) != bytes_read)
1624 size_t bytes_read = plain_read (buf, size); local
1882 size_t bytes_read = read_and_xlate (io_buf, sizeof io_buf); local
/haiku-fatelf/src/add-ons/input_server/devices/serial_mouse/
H A DSerialMouse.cpp159 int bytes_read = 0; local
185 while ((fSerialPort->Read(&c, 1) == 1) && (bytes_read < kMaxBytesToRead)) {
195 buffer[bytes_read] = c; // store the garbage for futher processing.
197 bytes_read++;
205 if (bytes_read == 0)
221 if (bytes_read < 3) // not enough data to even start... quit.
226 if (bytes_read == 5) {
337 uint8 bytes_read; local
340 for (bytes_read = 0; bytes_read < mpsiz
[all...]
/haiku-fatelf/src/add-ons/media/plugins/mp4_reader/libMP4/
H A DMP4Atom.cpp196 uint32 bytes_read; local
198 bytes_read = GetStream()->Read(value,sizeof(uint64));
200 // Assert((bytes_read == sizeof(uint64),"Read Error");
209 uint32 bytes_read; local
211 bytes_read = GetStream()->Read(value,sizeof(uint32));
213 // Assert((bytes_read == sizeof(uint32),"Read Error");
222 uint32 bytes_read; local
224 bytes_read = GetStream()->Read(value,sizeof(int32));
226 // Assert((bytes_read == sizeof(int32),"Read Error");
235 uint32 bytes_read; local
248 uint32 bytes_read; local
259 uint32 bytes_read; local
270 uint32 bytes_read; local
[all...]
/haiku-fatelf/src/bin/gdb/bfd/
H A Ddwarf2.c432 unsigned int abbrev_number, bytes_read, abbrev_name; local
468 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
469 abbrev_ptr += bytes_read;
480 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
481 abbrev_ptr += bytes_read;
486 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
487 abbrev_ptr += bytes_read;
488 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
489 abbrev_ptr += bytes_read;
506 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
544 unsigned int bytes_read; local
909 unsigned int i, bytes_read, offset_size; local
1335 unsigned int abbrev_number, bytes_read, i; local
1443 unsigned int abbrev_number, bytes_read, i; local
[all...]
/haiku-fatelf/src/bin/gdb/opcodes/
H A Dv850-dis.c58 int bytes_read; local
65 bytes_read = short_op ? 2 : 4;
290 status = info->read_memory_func (memaddr + bytes_read, buffer, 2, info);
293 bytes_read += 2;
304 info->memory_error_func (status, memaddr + bytes_read, info);
309 status = info->read_memory_func (memaddr + bytes_read, buffer, 4, info);
312 bytes_read += 4;
318 info->memory_error_func (status, memaddr + bytes_read, info);
347 return bytes_read;
/haiku-fatelf/src/libs/util/
H A Duucplock.c215 int bytes_read; local
219 bytes_read = read (fd, buf, sizeof (buf) - 1);
220 if (bytes_read > 0) {
221 buf[bytes_read] = '\0';
225 *err = bytes_read ? errno : EINVAL;
/haiku-fatelf/src/bin/gdb/gdb/
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;
1232 unsigned int bytes_read;
1239 length = read_initial_length (unit->abfd, buf, &bytes_read);
1240 buf += bytes_read;
1251 dwarf64_p = (bytes_read == 12);
1317 read_unsigned_leb128 (unit->abfd, buf, &bytes_read);
1318 buf += bytes_read;
1321 read_signed_leb128 (unit->abfd, buf, &bytes_read);
273 int bytes_read; local
1223 unsigned int bytes_read; local
[all...]
H A Ddwarf2read.c797 int *bytes_read);
800 struct comp_unit_head *, int *bytes_read);
803 int *bytes_read);
1246 int bytes_read;
1249 &bytes_read);
1250 pubnames_ptr += bytes_read;
1273 int bytes_read; local
1275 &bytes_read);
1276 info_ptr += bytes_read;
1280 &bytes_read);
1426 unsigned int bytes_read; local
1563 unsigned int bytes_read; local
1631 int bytes_read; local
2141 peek_die_abbrev(char *info_ptr, int *bytes_read, struct dwarf2_cu *cu) argument
2170 unsigned int bytes_read; local
2192 unsigned int bytes_read; local
4955 unsigned int abbrev_number, bytes_read, abbrev_name; local
5124 unsigned int bytes_read; local
5320 unsigned int bytes_read, i; local
5527 unsigned int abbrev_number, bytes_read, i, offset; local
5613 unsigned int bytes_read; local
5782 read_address(bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read) argument
5874 read_initial_length(bfd *abfd, char *buf, struct comp_unit_head *cu_header, int *bytes_read) argument
5920 read_offset(bfd *abfd, char *buf, const struct comp_unit_head *cu_header, int *bytes_read) argument
6265 int bytes_read; local
6429 unsigned int bytes_read; local
8548 unsigned int bytes_read, unsnd; local
9054 int bytes_read; local
9082 int bytes_read; local
9133 int bytes_read; local
[all...]
H A Ddwarf2expr.c199 dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read) argument
206 *bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT;
267 int bytes_read;
307 result = dwarf2_read_address (op_ptr, op_end, &bytes_read);
308 op_ptr += bytes_read;
524 int bytes_read;
531 &bytes_read);
538 int bytes_read;
544 &bytes_read);
266 int bytes_read; local
523 int bytes_read; local
537 int bytes_read; local
H A Ddwarf2expr.h137 int *bytes_read);
/haiku-fatelf/src/add-ons/kernel/drivers/disk/floppy/pc_floppy/
H A Dfloppy.c391 size_t bytes_read = 0; local
427 TRACE("read: begin %Ld, %ld\n", position, bytes_read);
438 bytes_read += toread;
444 TRACE("read: middle %Ld, %ld, %ld\n", position, bytes_read, len);
453 memcpy(((char *)data) + bytes_read, cookie->flp->master->buffer + position % cylsize, err*sectsize);
455 bytes_read += err * sectsize;
460 TRACE("read: end %Ld, %ld %ld\n", position, bytes_read, len);
468 memcpy(((char *)data) + bytes_read, cookie->flp->master->buffer + position % cylsize, len);
469 bytes_read += len;
473 *numbytes = bytes_read;
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/
H A Dfile.c346 //size_t bytes_read = 0;
364 //bytes_read = 0;
417 bytes_read += amt;
419 if (bytes_read < *len)
428 while (bytes_read + vol->bytes_per_sector <= *len) {
429 result = csi_read_blocks(&iter, (uint8*)buf + bytes_read, *len - bytes_read);
434 bytes_read += result;
436 if (bytes_read < *len)
445 if (bytes_read < *le
1498 size_t bytes_read = 0; local
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/
H A Dfile.c332 size_t bytes_read = 0; local
358 bytes_read = 0;
406 bytes_read += amt;
408 if (bytes_read < *len)
417 while (bytes_read + vol->bytes_per_sector <= *len) {
418 result = csi_read_blocks(&iter, (uint8*)buf + bytes_read, *len - bytes_read);
423 bytes_read += result;
425 if (bytes_read < *len)
434 if (bytes_read < *le
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drunlist.c1099 s64 bytes_read, to_read, ofs, total; local
1137 bytes_read = ntfs_pread(vol->dev, (rl->lcn <<
1140 if (bytes_read > 0) {
1141 total += bytes_read;
1142 count -= bytes_read;
1143 b = (u8*)b + bytes_read;
1147 if (bytes_read == (s64)-1 && errno == EINTR)
1149 if (bytes_read == (s64)-1)

Completed in 218 milliseconds

12