Lines Matching refs:amt
78 bfd_size_type amt; in nlm_swap_variable_header_in() local
81 amt = sizeof (nlm_variable_header (abfd)->descriptionLength); in nlm_swap_variable_header_in()
83 amt, abfd) != amt) in nlm_swap_variable_header_in()
85 amt = nlm_variable_header (abfd)->descriptionLength + 1; in nlm_swap_variable_header_in()
87 amt, abfd) != amt) in nlm_swap_variable_header_in()
91 amt = sizeof (temp); in nlm_swap_variable_header_in()
92 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_swap_variable_header_in()
97 amt = sizeof (temp); in nlm_swap_variable_header_in()
98 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_swap_variable_header_in()
103 amt = sizeof (nlm_variable_header (abfd)->oldThreadName); in nlm_swap_variable_header_in()
105 amt, abfd) != amt) in nlm_swap_variable_header_in()
109 amt = sizeof (nlm_variable_header (abfd)->screenNameLength); in nlm_swap_variable_header_in()
111 amt, abfd) != amt) in nlm_swap_variable_header_in()
113 amt = nlm_variable_header (abfd)->screenNameLength + 1; in nlm_swap_variable_header_in()
115 amt, abfd) != amt) in nlm_swap_variable_header_in()
119 amt = sizeof (nlm_variable_header (abfd)->threadNameLength); in nlm_swap_variable_header_in()
121 amt, abfd) != amt) in nlm_swap_variable_header_in()
123 amt = nlm_variable_header (abfd)->threadNameLength + 1; in nlm_swap_variable_header_in()
125 amt, abfd) != amt) in nlm_swap_variable_header_in()
167 bfd_size_type amt; in nlm_swap_auxiliary_headers_in() local
172 amt = sizeof (tempstr); in nlm_swap_auxiliary_headers_in()
173 if (bfd_bread ((void *) tempstr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
181 amt = sizeof (thdr); in nlm_swap_auxiliary_headers_in()
182 if (bfd_bread ((void *) &thdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
203 amt = sizeof (thdr); in nlm_swap_auxiliary_headers_in()
204 if (bfd_bread ((void *) &thdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
269 amt = sizeof (nlm_copyright_header (abfd)->stamp); in nlm_swap_auxiliary_headers_in()
271 amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
278 amt = nlm_copyright_header (abfd)->copyrightMessageLength + 1; in nlm_swap_auxiliary_headers_in()
280 amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
293 amt = sizeof (thdr.stamp); in nlm_swap_auxiliary_headers_in()
294 if (bfd_bread ((void *) thdr.stamp, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
297 amt = sizeof (thdr.length); in nlm_swap_auxiliary_headers_in()
298 if (bfd_bread ((void *) thdr.length, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
306 amt = sizeof (thdr.dataOffset); in nlm_swap_auxiliary_headers_in()
307 if (bfd_bread ((void *) thdr.dataOffset, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
315 amt = sizeof (thdr.dataLength); in nlm_swap_auxiliary_headers_in()
316 if (bfd_bread ((void *) thdr.dataLength, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
324 amt = sizeof (dataStamp); in nlm_swap_auxiliary_headers_in()
325 if (bfd_bread ((void *) dataStamp, amt, abfd) != amt) in nlm_swap_auxiliary_headers_in()
445 bfd_size_type amt; in nlm_object_p() local
457 amt = nlm_fixed_header_size (abfd); in nlm_object_p()
458 x_fxdhdr = bfd_malloc (amt); in nlm_object_p()
462 if (bfd_bread ((void *) x_fxdhdr, amt, abfd) != amt) in nlm_object_p()
472 amt = sizeof (struct nlm_obj_tdata); in nlm_object_p()
473 new_tdata = bfd_zalloc (abfd, amt); in nlm_object_p()
570 bfd_size_type amt; in nlm_swap_variable_header_out() local
573 amt = sizeof (nlm_variable_header (abfd)->descriptionLength); in nlm_swap_variable_header_out()
574 if (bfd_bwrite (& nlm_variable_header (abfd)->descriptionLength, amt, in nlm_swap_variable_header_out()
575 abfd) != amt) in nlm_swap_variable_header_out()
577 amt = nlm_variable_header (abfd)->descriptionLength + 1; in nlm_swap_variable_header_out()
578 if (bfd_bwrite ((void *) nlm_variable_header (abfd)->descriptionText, amt, in nlm_swap_variable_header_out()
579 abfd) != amt) in nlm_swap_variable_header_out()
584 amt = sizeof (temp); in nlm_swap_variable_header_out()
585 if (bfd_bwrite (temp, amt, abfd) != amt) in nlm_swap_variable_header_out()
590 amt = sizeof (temp); in nlm_swap_variable_header_out()
591 if (bfd_bwrite (temp, amt, abfd) != amt) in nlm_swap_variable_header_out()
595 amt = sizeof (nlm_variable_header (abfd)->oldThreadName); in nlm_swap_variable_header_out()
596 if (bfd_bwrite (nlm_variable_header (abfd)->oldThreadName, amt, in nlm_swap_variable_header_out()
597 abfd) != amt) in nlm_swap_variable_header_out()
601 amt = sizeof (nlm_variable_header (abfd)->screenNameLength); in nlm_swap_variable_header_out()
602 if (bfd_bwrite (& nlm_variable_header (abfd)->screenNameLength, amt, in nlm_swap_variable_header_out()
603 abfd) != amt) in nlm_swap_variable_header_out()
605 amt = nlm_variable_header (abfd)->screenNameLength + 1; in nlm_swap_variable_header_out()
606 if (bfd_bwrite (nlm_variable_header (abfd)->screenName, amt, abfd) != amt) in nlm_swap_variable_header_out()
610 amt = sizeof (nlm_variable_header (abfd)->threadNameLength); in nlm_swap_variable_header_out()
611 if (bfd_bwrite (& nlm_variable_header (abfd)->threadNameLength, amt, in nlm_swap_variable_header_out()
612 abfd) != amt) in nlm_swap_variable_header_out()
614 amt = nlm_variable_header (abfd)->threadNameLength + 1; in nlm_swap_variable_header_out()
615 if (bfd_bwrite (nlm_variable_header (abfd)->threadName, amt, abfd) != amt) in nlm_swap_variable_header_out()
640 bfd_size_type amt; in nlm_swap_auxiliary_headers_out() local
676 amt = sizeof (thdr.stamp); in nlm_swap_auxiliary_headers_out()
677 if (bfd_bwrite ((void *) thdr.stamp, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
681 amt = 1; in nlm_swap_auxiliary_headers_out()
682 if (bfd_bwrite ((void *) thdr.copyrightMessageLength, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
685 amt = nlm_copyright_header (abfd)->copyrightMessageLength + 1; in nlm_swap_auxiliary_headers_out()
687 amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
811 amt = sizeof (thdr) - sizeof (thdr.dataStamp); in nlm_swap_auxiliary_headers_out()
812 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
819 amt = sizeof (thdr); in nlm_swap_auxiliary_headers_out()
820 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
822 amt = nlm_custom_header (abfd)->hdrLength; in nlm_swap_auxiliary_headers_out()
823 if (bfd_bwrite (nlm_custom_header (abfd)->hdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
842 amt = sizeof (thdr); in nlm_swap_auxiliary_headers_out()
843 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt) in nlm_swap_auxiliary_headers_out()
905 bfd_size_type amt; in nlm_slurp_symbol_table() local
929 amt = totsymcount * sizeof (nlm_symbol_type); in nlm_slurp_symbol_table()
930 sym = bfd_zalloc (abfd, amt); in nlm_slurp_symbol_table()
943 amt = sizeof (symlength); in nlm_slurp_symbol_table()
944 if (bfd_bread ((void *) &symlength, amt, abfd) != amt) in nlm_slurp_symbol_table()
946 amt = symlength; in nlm_slurp_symbol_table()
948 sym->symbol.name = bfd_alloc (abfd, amt + 1); in nlm_slurp_symbol_table()
951 if (bfd_bread ((void *) sym->symbol.name, amt, abfd) != amt) in nlm_slurp_symbol_table()
955 amt = sizeof (temp); in nlm_slurp_symbol_table()
956 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_slurp_symbol_table()
995 amt = sizeof (symtype); in nlm_slurp_symbol_table()
996 if (bfd_bread ((void *) &symtype, amt, abfd) != amt) in nlm_slurp_symbol_table()
998 amt = sizeof (temp); in nlm_slurp_symbol_table()
999 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_slurp_symbol_table()
1001 amt = sizeof (symlength); in nlm_slurp_symbol_table()
1002 if (bfd_bread ((void *) &symlength, amt, abfd) != amt) in nlm_slurp_symbol_table()
1004 amt = symlength; in nlm_slurp_symbol_table()
1006 sym->symbol.name = bfd_alloc (abfd, amt + 1); in nlm_slurp_symbol_table()
1009 if (bfd_bread ((void *) sym->symbol.name, amt, abfd) != amt) in nlm_slurp_symbol_table()
1082 bfd_size_type amt = sizeof (nlm_symbol_type); in nlm_make_empty_symbol() local
1083 nlm_symbol_type *new = bfd_zalloc (abfd, amt); in nlm_make_empty_symbol()
1144 bfd_size_type count, amt; in nlm_slurp_reloc_fixups() local
1159 amt = count * sizeof (arelent); in nlm_slurp_reloc_fixups()
1160 rels = bfd_alloc (abfd, amt); in nlm_slurp_reloc_fixups()
1161 amt = count * sizeof (asection *); in nlm_slurp_reloc_fixups()
1162 secs = bfd_alloc (abfd, amt); in nlm_slurp_reloc_fixups()
1609 bfd_size_type amt; in nlm_write_object_contents() local
1698 amt = external_reloc_count * sizeof (struct reloc_and_sec); in nlm_write_object_contents()
1699 external_relocs = bfd_alloc (abfd, amt); in nlm_write_object_contents()