Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 25 of 26) sorted by relevance

12

/toolchain/binutils/binutils-2.25/bfd/
Daix5ppc-core.c57 struct stat statbuf; in xcoff64_core_p() local
74 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p()
93 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p()
94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p()
95 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p()
96 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p()
97 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p()
98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p()
99 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p()
100 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p()
[all …]
Dhppabsd-core.c126 struct stat statbuf; in hppabsd_core_core_file_p() local
128 if (bfd_stat (abfd, &statbuf) < 0) in hppabsd_core_core_file_p()
131 if (NBPG * (UPAGES + u.u_dsize + u.u_ssize) > statbuf.st_size) in hppabsd_core_core_file_p()
136 if (clicksz * (UPAGES + u.u_dsize + u.u_ssize) < statbuf.st_size) in hppabsd_core_core_file_p()
Dtrad-core.c111 struct stat statbuf; in trad_unix_core_file_p() local
113 if (bfd_stat (abfd, &statbuf) < 0) in trad_unix_core_file_p()
121 > (ufile_ptr) statbuf.st_size) in trad_unix_core_file_p()
133 < (ufile_ptr) statbuf.st_size) in trad_unix_core_file_p()
Dbfdio.c261 bfd_stat (bfd *abfd, struct stat *statbuf) in bfd_stat() argument
266 result = abfd->iovec->bstat (abfd, statbuf); in bfd_stat()
597 memory_bstat (bfd *abfd, struct stat *statbuf) in memory_bstat() argument
601 memset (statbuf, 0, sizeof (*statbuf)); in memory_bstat()
602 statbuf->st_size = bim->size; in memory_bstat()
Delfcore.h288 struct stat statbuf; in elf_core_file_p() local
299 if (bfd_stat (abfd, &statbuf) == 0) in elf_core_file_p()
301 if ((bfd_size_type) statbuf.st_size < high) in elf_core_file_p()
306 abfd, (unsigned long) high, (unsigned long) statbuf.st_size); in elf_core_file_p()
Dcisco-core.c94 struct stat statbuf; in cisco_core_file_validate() local
125 if (bfd_stat (abfd, &statbuf) < 0) in cisco_core_file_validate()
248 asect->size = statbuf.st_size; in cisco_core_file_validate()
274 nread = statbuf.st_size - asect->filepos; in cisco_core_file_validate()
Dbinary.c59 struct stat statbuf; in binary_object_p() local
72 if (bfd_stat (abfd, &statbuf) < 0) in binary_object_p()
84 sec->size = statbuf.st_size; in binary_object_p()
Dsco5-core.c118 struct stat statbuf; in sco5_core_file_p() local
120 if (bfd_stat (abfd, &statbuf) < 0) in sco5_core_file_p()
123 coresize = statbuf.st_size; in sco5_core_file_p()
Dppcboot.c136 struct stat statbuf; in ppcboot_object_p() local
152 if (bfd_stat (abfd, &statbuf) < 0) in ppcboot_object_p()
158 if ((size_t) statbuf.st_size < sizeof (ppcboot_hdr_t)) in ppcboot_object_p()
201 sec->size = statbuf.st_size - sizeof (ppcboot_hdr_t); in ppcboot_object_p()
Drs6000-core.c324 struct stat statbuf; in rs6000coff_core_p() local
389 if (bfd_stat (abfd, &statbuf) < 0) in rs6000coff_core_p()
428 if (c_stack + (file_ptr) c_size != statbuf.st_size) in rs6000coff_core_p()
437 c_loader >= statbuf.st_size || in rs6000coff_core_p()
Dmmo.c500 struct stat statbuf; in mmo_object_p() local
505 if (bfd_stat (abfd, &statbuf) < 0 in mmo_object_p()
512 if ((statbuf.st_size % 4) != 0 in mmo_object_p()
517 if (bfd_seek (abfd, (file_ptr) statbuf.st_size - 4, SEEK_SET) != 0 in mmo_object_p()
1948 struct stat statbuf; in mmo_scan() local
1951 if (bfd_stat (abfd, &statbuf) < 0) in mmo_scan()
1954 if (statbuf.st_size != curpos) in mmo_scan()
Darchive.c2449 struct stat statbuf; in bsd_write_armap() local
2451 if (stat (arch->filename, &statbuf) == 0) in bsd_write_armap()
2452 bfd_ardata (arch)->armap_timestamp = (statbuf.st_mtime in bsd_write_armap()
Dsom.c6558 struct stat statbuf; in som_write_armap() local
6568 if (stat (abfd->filename, &statbuf) != 0) in som_write_armap()
6574 bfd_ardata (abfd)->armap_timestamp = statbuf.st_mtime + 60; in som_write_armap()
6650 statbuf.st_uid); in som_write_armap()
6652 statbuf.st_gid); in som_write_armap()
6654 (unsigned int)statbuf.st_mode); in som_write_armap()
Decoff.c3022 struct stat statbuf; in _bfd_ecoff_write_armap() local
3063 stat (abfd->filename, &statbuf); in _bfd_ecoff_write_armap()
3065 (long) (statbuf.st_mtime + 60)); in _bfd_ecoff_write_armap()
DChangeLog-2006210 * trad-core.c (trad_unix_core): Don't cast statbuf.st_size to
/toolchain/binutils/binutils-2.25/binutils/
Drename.c91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument
99 tb.actime = statbuf->st_atime; in set_times()
100 tb.modtime = statbuf->st_mtime; in set_times()
106 tb[0] = statbuf->st_atime; in set_times()
107 tb[1] = statbuf->st_mtime; in set_times()
112 tv[0].tv_sec = statbuf->st_atime; in set_times()
114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
Dbucomm.c572 struct stat statbuf; in get_file_size() local
574 if (stat (file_name, &statbuf) < 0) in get_file_size()
582 else if (! S_ISREG (statbuf.st_mode)) in get_file_size()
584 else if (statbuf.st_size < 0) in get_file_size()
588 return statbuf.st_size; in get_file_size()
Delfedit.c443 struct stat statbuf; in check_file() local
446 statbuf_p = &statbuf; in check_file()
Dwindres.c938 struct stat statbuf; in main() local
941 if (stat (optarg, & statbuf) == 0 in main()
943 && (mode_string (statbuf.st_mode, modebuf), modebuf[0] == 'd')) in main()
Dobjcopy.c3370 struct stat statbuf; in strip_main() local
3382 stat (argv[i], &statbuf); in strip_main()
3403 set_times (tmpname, &statbuf); in strip_main()
3545 struct stat statbuf; in copy_main() local
4291 if (stat (input_filename, & statbuf) < 0) in copy_main()
4311 set_times (tmpname, &statbuf); in copy_main()
DChangeLog-2009142 * strings.c (file_off, file_open, statbuf, file_stat): Remove.
144 statbuf to struct stat and file_stat to stat.
DChangeLog-2004287 * strings.c (statbuf): New typedef.
Dreadelf.c15324 struct stat statbuf; in process_file() local
15328 if (stat (file_name, &statbuf) < 0) in process_file()
15338 if (! S_ISREG (statbuf.st_mode)) in process_file()
15358 current_file_size = (bfd_size_type) statbuf.st_size; in process_file()
/toolchain/binutils/binutils-2.25/gas/
Dhash.c422 int statbuf[STATBUFSIZE]; variable
524 hash_say (h, statbuf, STATBUFSIZE); in main()
525 for (ip = statbuf; ip < statbuf + STATBUFSIZE; ip++) in main()
/toolchain/binutils/binutils-2.25/gold/
Doutput.cc5126 struct stat statbuf; in map_no_anonymous() local
5128 || ::fstat(o, &statbuf) != 0 in map_no_anonymous()
5129 || !S_ISREG(statbuf.st_mode) in map_no_anonymous()

12