Lines Matching refs:total
1103 size_t total = desired_total; in fread_unlocked() local
1104 if (total == 0) return 0; in fread_unlocked()
1116 while (total > 0) { in fread_unlocked()
1118 size_t buffered_bytes = MIN(static_cast<size_t>(fp->_r), total); in fread_unlocked()
1123 total -= buffered_bytes; in fread_unlocked()
1126 if (total == 0) goto out; in fread_unlocked()
1129 if (total > static_cast<size_t>(fp->_bf._size)) break; in fread_unlocked()
1136 while (total > 0) { in fread_unlocked()
1137 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); in fread_unlocked()
1143 total -= bytes_read; in fread_unlocked()
1147 return ((desired_total - total) / size); in fread_unlocked()