Home | History | Annotate | Download | only in bfd

Lines Matching refs:nread

286   file_ptr nread;
306 nread = read (fileno (f), buf, nbytes);
310 if (nread == (file_ptr)-1)
313 return nread;
316 nread = fread (buf, 1, nbytes, f);
320 if (nread < nbytes && ferror (f))
323 return nread;
326 if (nread < nbytes)
330 return nread;
336 file_ptr nread = 0;
341 while (nread < nbytes)
344 file_ptr chunk_size = nbytes - nread;
350 chunk_nread = cache_bread_1 (abfd, (char *) buf + nread, chunk_size);
352 /* Update the nread count.
355 a negative count: If this is our first read, then set nread to
360 if (nread == 0 || chunk_nread > 0)
361 nread += chunk_nread;
367 return nread;