Lines Matching refs:nread
286 file_ptr nread; in cache_bread_1() local
306 nread = read (fileno (f), buf, nbytes); in cache_bread_1()
310 if (nread == (file_ptr)-1) in cache_bread_1()
313 return nread; in cache_bread_1()
316 nread = fread (buf, 1, nbytes, f); in cache_bread_1()
320 if (nread < nbytes && ferror (f)) in cache_bread_1()
323 return nread; in cache_bread_1()
326 if (nread < nbytes) in cache_bread_1()
330 return nread; in cache_bread_1()
336 file_ptr nread = 0; in cache_bread() local
341 while (nread < nbytes) in cache_bread()
344 file_ptr chunk_size = nbytes - nread; in cache_bread()
350 chunk_nread = cache_bread_1 (abfd, (char *) buf + nread, chunk_size); in cache_bread()
360 if (nread == 0 || chunk_nread > 0) in cache_bread()
361 nread += chunk_nread; in cache_bread()
367 return nread; in cache_bread()