Lines Matching refs:amt

105   bfd_size_type amt;
117 amt = nlm_fixed_header_size (abfd);
118 x_fxdhdr = (PTR) bfd_malloc (amt);
122 if (bfd_bread ((PTR) x_fxdhdr, amt, abfd) != amt)
132 amt = sizeof (struct nlm_obj_tdata);
133 new_tdata = (struct nlm_obj_tdata *) bfd_zalloc (abfd, amt);
255 bfd_size_type amt;
259 amt = sizeof (nlm_variable_header (abfd)->descriptionLength);
261 amt, abfd) != amt)
263 amt = nlm_variable_header (abfd)->descriptionLength + 1;
265 amt, abfd) != amt)
270 amt = sizeof (temp);
271 if (bfd_bread ((PTR) temp, amt, abfd) != amt)
277 amt = sizeof (temp);
278 if (bfd_bread ((PTR) temp, amt, abfd) != amt)
284 amt = sizeof (nlm_variable_header (abfd)->oldThreadName);
286 amt, abfd) != amt)
291 amt = sizeof (nlm_variable_header (abfd)->screenNameLength);
293 amt, abfd) != amt)
295 amt = nlm_variable_header (abfd)->screenNameLength + 1;
297 amt, abfd) != amt)
302 amt = sizeof (nlm_variable_header (abfd)->threadNameLength);
304 amt, abfd) != amt)
306 amt = nlm_variable_header (abfd)->threadNameLength + 1;
308 amt, abfd) != amt)
321 bfd_size_type amt;
324 amt = sizeof (nlm_variable_header (abfd)->descriptionLength);
325 if (bfd_bwrite ((PTR) & nlm_variable_header (abfd)->descriptionLength, amt,
326 abfd) != amt)
328 amt = nlm_variable_header (abfd)->descriptionLength + 1;
329 if (bfd_bwrite ((PTR) nlm_variable_header (abfd)->descriptionText, amt,
330 abfd) != amt)
336 amt = sizeof (temp);
337 if (bfd_bwrite ((PTR) temp, amt, abfd) != amt)
343 amt = sizeof (temp);
344 if (bfd_bwrite ((PTR) temp, amt, abfd) != amt)
348 amt = sizeof (nlm_variable_header (abfd)->oldThreadName);
349 if (bfd_bwrite ((PTR) nlm_variable_header (abfd)->oldThreadName, amt,
350 abfd) != amt)
354 amt = sizeof (nlm_variable_header (abfd)->screenNameLength);
355 if (bfd_bwrite ((PTR) & nlm_variable_header (abfd)->screenNameLength, amt,
356 abfd) != amt)
358 amt = nlm_variable_header (abfd)->screenNameLength + 1;
359 if (bfd_bwrite ((PTR) nlm_variable_header (abfd)->screenName, amt,
360 abfd) != amt)
364 amt = sizeof (nlm_variable_header (abfd)->threadNameLength);
365 if (bfd_bwrite ((PTR) & nlm_variable_header (abfd)->threadNameLength, amt,
366 abfd) != amt)
368 amt = nlm_variable_header (abfd)->threadNameLength + 1;
369 if (bfd_bwrite ((PTR) nlm_variable_header (abfd)->threadName, amt,
370 abfd) != amt)
390 bfd_size_type amt;
395 amt = sizeof (tempstr);
396 if (bfd_bread ((PTR) tempstr, amt, abfd) != amt)
404 amt = sizeof (thdr);
405 if (bfd_bread ((PTR) &thdr, amt, abfd) != amt)
426 amt = sizeof (thdr);
427 if (bfd_bread ((PTR) &thdr, amt, abfd) != amt)
492 amt = sizeof (nlm_copyright_header (abfd)->stamp);
494 amt, abfd) != amt)
501 amt = nlm_copyright_header (abfd)->copyrightMessageLength + 1;
503 amt, abfd) != amt)
516 amt = sizeof (thdr.stamp);
517 if (bfd_bread ((PTR) thdr.stamp, amt, abfd) != amt)
520 amt = sizeof (thdr.length);
521 if (bfd_bread ((PTR) thdr.length, amt, abfd) != amt)
529 amt = sizeof (thdr.dataOffset);
530 if (bfd_bread ((PTR) thdr.dataOffset, amt, abfd) != amt)
538 amt = sizeof (thdr.dataLength);
539 if (bfd_bread ((PTR) thdr.dataLength, amt, abfd) != amt)
547 amt = sizeof (dataStamp);
548 if (bfd_bread ((PTR) dataStamp, amt, abfd) != amt)
682 bfd_size_type amt;
718 amt = sizeof (thdr.stamp);
719 if (bfd_bwrite ((PTR) thdr.stamp, amt, abfd) != amt)
723 amt = 1;
724 if (bfd_bwrite ((PTR) thdr.copyrightMessageLength, amt, abfd) != amt)
727 amt = nlm_copyright_header (abfd)->copyrightMessageLength + 1;
729 amt, abfd) != amt)
853 amt = sizeof (thdr) - sizeof (thdr.dataStamp);
854 if (bfd_bwrite ((PTR) &thdr, amt, abfd) != amt)
861 amt = sizeof (thdr);
862 if (bfd_bwrite ((PTR) &thdr, amt, abfd) != amt)
864 amt = nlm_custom_header (abfd)->hdrLength;
865 if (bfd_bwrite (nlm_custom_header (abfd)->hdr, amt, abfd) != amt)
884 amt = sizeof (thdr);
885 if (bfd_bwrite ((PTR) &thdr, amt, abfd) != amt)
947 bfd_size_type amt = sizeof (nlm_symbol_type);
948 nlm_symbol_type *new = (nlm_symbol_type *) bfd_zalloc (abfd, amt);
1025 bfd_size_type amt;
1049 amt = totsymcount * sizeof (nlm_symbol_type);
1050 sym = ((nlm_symbol_type *) bfd_zalloc (abfd, amt));
1063 amt = sizeof (symlength);
1064 if (bfd_bread ((PTR) &symlength, amt, abfd) != amt)
1066 amt = symlength;
1068 sym->symbol.name = bfd_alloc (abfd, amt + 1);
1071 if (bfd_bread ((PTR) sym->symbol.name, amt, abfd) != amt)
1075 amt = sizeof (temp);
1076 if (bfd_bread ((PTR) temp, amt, abfd) != amt)
1117 amt = sizeof (symtype);
1118 if (bfd_bread ((PTR) &symtype, amt, abfd) != amt)
1120 amt = sizeof (temp);
1121 if (bfd_bread ((PTR) temp, amt, abfd) != amt)
1123 amt = sizeof (symlength);
1124 if (bfd_bread ((PTR) &symlength, amt, abfd) != amt)
1126 amt = symlength;
1128 sym->symbol.name = bfd_alloc (abfd, amt + 1);
1131 if (bfd_bread ((PTR) sym->symbol.name, amt, abfd) != amt)
1199 bfd_size_type count, amt;
1214 amt = count * sizeof (arelent);
1215 rels = (arelent *) bfd_alloc (abfd, amt);
1216 amt = count * sizeof (asection *);
1217 secs = (asection **) bfd_alloc (abfd, amt);
1673 bfd_size_type amt;
1763 amt = external_reloc_count * sizeof (struct reloc_and_sec);
1764 external_relocs = (struct reloc_and_sec *) bfd_alloc (abfd, amt);