Lines Matching refs:n_bytes_read
1059 size_t n_bytes_read, n_bytes_to_read = BUFSIZ; in skip() local
1065 n_bytes_read = fread (buf, 1, n_bytes_to_read, in_stream); in skip()
1066 n_skip -= n_bytes_read; in skip()
1067 if (n_bytes_read != n_bytes_to_read) in skip()
1370 size_t n_bytes_read; in dump() local
1384 n_bytes_read = 0; in dump()
1389 ok &= read_block (n_needed, block[idx], &n_bytes_read); in dump()
1390 if (n_bytes_read < bytes_per_block) in dump()
1392 affirm (n_bytes_read == bytes_per_block); in dump()
1393 write_block (current_offset, n_bytes_read, in dump()
1397 current_offset += n_bytes_read; in dump()
1405 ok &= read_block (bytes_per_block, block[idx], &n_bytes_read); in dump()
1406 if (n_bytes_read < bytes_per_block) in dump()
1408 affirm (n_bytes_read == bytes_per_block); in dump()
1409 write_block (current_offset, n_bytes_read, in dump()
1413 current_offset += n_bytes_read; in dump()
1418 if (n_bytes_read > 0) in dump()
1427 bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); in dump()
1429 memset (block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); in dump()
1430 write_block (current_offset, n_bytes_read, block[!idx], block[idx]); in dump()
1431 current_offset += n_bytes_read; in dump()