Lines Matching refs:bytes_read
166 ssize_t bytes_read;
186 if ((b = __archive_read_ahead(a, 60, &bytes_read)) == NULL)
439 ssize_t bytes_read;
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;
458 ar->entry_bytes_remaining -= bytes_read;
459 __archive_read_consume(a, (size_t)bytes_read);
463 *buff = __archive_read_ahead(a, 1, &bytes_read);
464 if (bytes_read <= 0)
466 if (bytes_read > ar->entry_padding)
467 bytes_read = (ssize_t)ar->entry_padding;
468 __archive_read_consume(a, (size_t)bytes_read);
469 ar->entry_padding -= bytes_read;