Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 11 of 11) sorted by relevance

/toolchain/binutils/binutils-2.25/bfd/
Dcache.c286 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
[all …]
Dcisco-core.c89 bfd_size_type nread; in cisco_core_file_validate() local
101 nread = bfd_bread (buf, (bfd_size_type) 4, abfd); in cisco_core_file_validate()
102 if (nread != 4) in cisco_core_file_validate()
117 nread = bfd_bread (&crashinfo, (bfd_size_type) sizeof (crashinfo), abfd); in cisco_core_file_validate()
118 if (nread != sizeof (crashinfo)) in cisco_core_file_validate()
274 nread = statbuf.st_size - asect->filepos; in cisco_core_file_validate()
275 asect->size = (nread < 1024) ? nread : 1024; in cisco_core_file_validate()
Dbfdio.c179 size_t nread; in bfd_bread() local
196 nread = abfd->iovec->bread (abfd, ptr, size); in bfd_bread()
198 nread = 0; in bfd_bread()
199 if (nread != (size_t) -1) in bfd_bread()
200 abfd->where += nread; in bfd_bread()
202 return nread; in bfd_bread()
Dopncls.c501 file_ptr nread = (vec->pread) (abfd, vec->stream, buf, nbytes, vec->where); in opncls_bread() local
502 if (nread < 0) in opncls_bread()
503 return nread; in opncls_bread()
504 vec->where += nread; in opncls_bread()
505 return nread; in opncls_bread()
Dmach-o.c5434 bfd_size_type nread = 0; in bfd_mach_o_core_fetch_environment() local
5451 nread = bfd_bread (buf, size, abfd); in bfd_mach_o_core_fetch_environment()
5453 if (nread != size) in bfd_mach_o_core_fetch_environment()
Delf32-nds32.c14995 size_t nread; in nds32_elf_ex9_import_table() local
14997 nread = fread (contents, sizeof (bfd_byte) * 4, 1, ex9_import_file); in nds32_elf_ex9_import_table()
14999 if (nread < 1) in nds32_elf_ex9_import_table()
DChangeLog-2006208 * cisco-core.c (cisco_core_file_validate): Use bfd_size_type for nread.
/toolchain/binutils/binutils-2.25/gold/testsuite/
Dbinary_unittest.cc50 ssize_t nread = ::read(fd, buf, size); in read_all() local
51 if (nread < 0) in read_all()
52 return nread; in read_all()
53 if (nread == 0) in read_all()
55 buf += nread; in read_all()
56 size -= nread; in read_all()
57 total_read += nread; in read_all()
/toolchain/binutils/binutils-2.25/binutils/
Drename.c45 int fromfd, tofd, nread; in simple_copy() local
64 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy()
66 if (write (tofd, buf, nread) != nread) in simple_copy()
78 if (nread < 0) in simple_copy()
Dar.c995 bfd_size_type nread; in print_contents() local
1001 nread = bfd_bread (cbuf, tocopy, abfd); in print_contents()
1002 if (nread != tocopy) in print_contents()
1010 if ((bfd_size_type) fwrite (cbuf, 1, nread, stdout) != nread) in print_contents()
1032 bfd_size_type nread, tocopy; in extract_file() local
1078 nread = bfd_bread (cbuf, tocopy, abfd); in extract_file()
1079 if (nread != tocopy) in extract_file()
1103 if ((bfd_size_type) fwrite (cbuf, 1, nread, ostream) != nread) in extract_file()
/toolchain/binutils/binutils-2.25/gprof/
Dsource.c97 int i, line_num, nread; in annotate_source() local
244 while ((nread = fread (buf, 1, sizeof (buf), ifp)) > 0) in annotate_source()
246 for (i = 0; i < nread; ++i) in annotate_source()