/dragonfly/libexec/rtld-elf/ |
H A D | malloc.c | 140 size_t amt; in malloc() local 158 amt = 8; in malloc() 160 amt <<= 1; in malloc() 180 amt = (size_t)pagesz; in malloc() 183 while (nbytes > amt + n) { in malloc() 184 amt <<= 1; in malloc() 185 if (amt == 0) in malloc() 255 amt = pagesz; in morecore() 256 nblks = amt / sz; in morecore() 258 amt = sz + pagesz; in morecore() [all …]
|
/dragonfly/games/adventure/ |
H A D | save.c | 228 size_t pos, amt, i; in savefile_binread() local 233 amt = len - pos; in savefile_binread() 260 size_t pos, amt; in savefile_bintextwrite() local 268 amt = len - pos; in savefile_bintextwrite() 273 pos += amt; in savefile_bintextwrite() 388 size_t pos, amt, i; in savefile_cread() local 394 amt = len - pos; in savefile_cread() 406 pos += amt; in savefile_cread() 420 size_t pos, amt, i; in savefile_cwrite() local 426 amt = len - pos; in savefile_cwrite() [all …]
|
/dragonfly/sys/bus/cam/scsi/ |
H A D | scsi_ses.c | 127 #define SES_MALLOC(amt) kmalloc(amt, M_SCSISES, M_INTWAIT) argument 130 #define MEMCPY(dest, src, amt) bcopy(src, dest, amt) argument 1090 amt = SCSZ; in ses_getconfig() 1096 amt = SCSZ - amt; in ses_getconfig() 1253 amt = bufsiz; in ses_getputstat() 1259 amt = bufsiz - amt; in ses_getputstat() 1344 e = amt; in ses_encdesc() 1417 if (amt < 2) in ses_decode() 1948 amt = SAFT_SCRATCH - amt; in safte_getconfig() 2460 amt = -16; in wrbuf16() [all …]
|
/dragonfly/usr.sbin/lpr/lpd/ |
H A D | recvjob.c | 245 size_t amt, i; in readfile() local 257 amt = BUFSIZ; in readfile() 259 if (i + amt > size) in readfile() 260 amt = size - i; in readfile() 262 j = read(STDOUT_FILENO, cp, amt); in readfile() 267 amt -= j; in readfile() 269 } while (amt > 0); in readfile() 270 amt = BUFSIZ; in readfile() 271 if (i + amt > size) in readfile() 272 amt = size - i; in readfile() [all …]
|
/dragonfly/games/larn/ |
H A D | main.c | 1077 long amt; in dropobj() local 1101 i = amt; in dropobj() 1104 i = amt / 10; in dropobj() 1105 amt = 10 * i; in dropobj() 1108 i = amt / 100; in dropobj() 1109 amt = 100 * i; in dropobj() 1112 i = amt / 1000; in dropobj() 1113 amt = 1000 * i; in dropobj() 1119 c[GOLD] -= amt; in dropobj() 1273 amt = amt * 10 + i - '0'; in readnum() [all …]
|
H A D | store.c | 560 unsigned long amt; in obanksub() local 610 amt = readnum((long)c[GOLD]); in obanksub() 611 if (amt > (unsigned)c[GOLD]) { in obanksub() 615 c[GOLD] -= amt; in obanksub() 616 c[BANKACCOUNT] += amt; in obanksub() 627 c[GOLD] += amt; in obanksub() 628 c[BANKACCOUNT] -= amt; in obanksub() 782 unsigned long amt; in olrs() local 806 amt = readnum((long)c[GOLD]); in olrs() 807 if (amt > (unsigned)c[GOLD]) in olrs() [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | archive.c | 794 bfd_size_type amt; in bfd_generic_archive_p() local 1160 bfd_size_type amt; in bfd_slurp_bsd_armap_f2() local 1204 if (bfd_bread (raw_armap, amt, abfd) != amt) in bfd_slurp_bsd_armap_f2() 1226 if (amt > left) in bfd_slurp_bsd_armap_f2() 1268 bfd_size_type amt; in _bfd_slurp_extended_name_table() local 1877 bfd_size_type amt; in bfd_ar_hdr_from_filesystem() local 2215 amt = remaining; in _bfd_write_archive_contents() 2217 if (bfd_bread (buffer, amt, current) != amt) in _bfd_write_archive_contents() 2223 if (bfd_bwrite (buffer, amt, arch) != amt) in _bfd_write_archive_contents() 2225 remaining -= amt; in _bfd_write_archive_contents() [all …]
|
H A D | elf-strtab.c | 99 bfd_size_type amt = sizeof (struct elf_strtab_hash); in _bfd_elf_strtab_init() local 101 table = (struct elf_strtab_hash *) bfd_malloc (amt); in _bfd_elf_strtab_init() 115 amt = sizeof (struct elf_strtab_hasn_entry *); in _bfd_elf_strtab_init() 117 bfd_malloc (table->alloced * amt); in _bfd_elf_strtab_init() 169 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_add() local 172 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 333 bfd_size_type size, amt; in _bfd_elf_strtab_finalize() local 342 amt = tab->size * sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_finalize() 343 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
|
H A D | dwarf2.c | 699 bfd_size_type amt; in read_abbrevs() local 718 amt = sizeof (struct abbrev_info); in read_abbrevs() 809 bfd_size_type amt; in read_attribute_value() local 840 amt = sizeof (struct dwarf_block); in read_attribute_value() 1346 bfd_size_type amt; in sort_line_sequences() local 1423 bfd_size_type amt; in decode_line_info() local 1527 amt *= sizeof (char *); in decode_line_info() 1550 amt *= sizeof (struct fileinfo); in decode_line_info() 2375 bfd_size_type amt; in parse_comp_unit() local 2445 amt = sizeof (struct comp_unit); in parse_comp_unit() [all …]
|
H A D | stabs.c | 157 bfd_size_type count, amt; in _bfd_link_section_stabs() local 215 amt = sizeof (struct stab_section_info); in _bfd_link_section_stabs() 216 amt += (count - 1) * sizeof (bfd_size_type); in _bfd_link_section_stabs() 217 *psecinfo = bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 377 amt = sizeof *ne; in _bfd_link_section_stabs() 378 ne = (struct stab_excl_list *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 475 amt = count * sizeof (bfd_size_type); in _bfd_link_section_stabs() 476 secinfo->cumulative_skips = (bfd_size_type *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 517 bfd_size_type count, amt; in _bfd_discard_section_stabs() local 628 amt = count * sizeof (bfd_size_type); in _bfd_discard_section_stabs() [all …]
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | elf-strtab.c | 98 bfd_size_type amt = sizeof (struct elf_strtab_hash); in _bfd_elf_strtab_init() local 100 table = (struct elf_strtab_hash *) bfd_malloc (amt); in _bfd_elf_strtab_init() 114 amt = sizeof (struct elf_strtab_hasn_entry *); in _bfd_elf_strtab_init() 116 bfd_malloc (table->alloced * amt)); in _bfd_elf_strtab_init() 168 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_add() local 171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 383 bfd_size_type amt, sec_size; in _bfd_elf_strtab_finalize() local 387 amt = tab->size; in _bfd_elf_strtab_finalize() 388 amt *= sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_finalize() 389 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
|
H A D | cofflink.c | 243 bfd_size_type amt; in coff_link_add_symbols() local 597 bfd_size_type amt; in _bfd_coff_final_link() local 762 amt = o->reloc_count; in _bfd_coff_final_link() 766 amt = o->reloc_count; in _bfd_coff_final_link() 811 amt = max_reloc_count * relsz; in _bfd_coff_final_link() 1650 bfd_size_type amt; in _bfd_coff_link_input_bfd() local 1700 bfd_alloc (input_bfd, amt); in _bfd_coff_link_input_bfd() 2209 bfd_size_type amt; in _bfd_coff_link_input_bfd() local 2315 || bfd_bwrite (flaginfo->linenos, amt, output_bfd) != amt) in _bfd_coff_link_input_bfd() 2340 bfd_size_type amt; in _bfd_coff_link_input_bfd() local [all …]
|
H A D | stabs.c | 156 bfd_size_type count, amt; in _bfd_link_section_stabs() local 214 amt = sizeof (struct stab_section_info); in _bfd_link_section_stabs() 215 amt += (count - 1) * sizeof (bfd_size_type); in _bfd_link_section_stabs() 216 *psecinfo = bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 377 amt = sizeof *ne; in _bfd_link_section_stabs() 378 ne = (struct stab_excl_list *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 475 amt = count * sizeof (bfd_size_type); in _bfd_link_section_stabs() 476 secinfo->cumulative_skips = (bfd_size_type *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 517 bfd_size_type count, amt; in _bfd_discard_section_stabs() local 628 amt = count * sizeof (bfd_size_type); in _bfd_discard_section_stabs() [all …]
|
H A D | archive.c | 850 bfd_size_type amt; in bfd_generic_archive_p() local 1216 bfd_size_type amt; in _bfd_slurp_extended_name_table() local 1241 if (amt + 1 == 0) in _bfd_slurp_extended_name_table() 1255 if (bfd_bread (bfd_ardata (abfd)->extended_names, amt, abfd) != amt) in _bfd_slurp_extended_name_table() 1840 bfd_size_type amt; in bfd_ar_hdr_from_filesystem() local 2192 if (amt > remaining) in _bfd_write_archive_contents() 2193 amt = remaining; in _bfd_write_archive_contents() 2195 if (bfd_bread (buffer, amt, current) != amt) in _bfd_write_archive_contents() 2201 if (bfd_bwrite (buffer, amt, arch) != amt) in _bfd_write_archive_contents() 2203 remaining -= amt; in _bfd_write_archive_contents() [all …]
|
H A D | archive64.c | 49 bfd_size_type amt; in _bfd_archive_64_bit_slurp_armap() local 92 amt = carsym_size + stringsize + 1; in _bfd_archive_64_bit_slurp_armap() 99 || amt <= carsym_size in _bfd_archive_64_bit_slurp_armap() 100 || amt <= stringsize) in _bfd_archive_64_bit_slurp_armap() 105 ardata->symdefs = (struct carsym *) bfd_zalloc (abfd, amt); in _bfd_archive_64_bit_slurp_armap()
|
H A D | dwarf2.c | 529 bfd_size_type amt; in read_section() local 552 amt = *section_size + 1; in read_section() 553 if (amt == 0) in read_section() 998 bfd_size_type amt; in read_abbrevs() local 1161 bfd_size_type amt; in read_attribute_value() local 1785 bfd_size_type amt; in build_line_info_table() local 1827 bfd_size_type amt; in sort_line_sequences() local 1900 bfd_size_type amt; in line_info_add_include_dir() local 1934 bfd_size_type amt; in line_info_add_file_name() local 2094 bfd_size_type amt; in decode_line_info() local [all …]
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | elf-strtab.c | 98 bfd_size_type amt = sizeof (struct elf_strtab_hash); in _bfd_elf_strtab_init() local 100 table = (struct elf_strtab_hash *) bfd_malloc (amt); in _bfd_elf_strtab_init() 114 amt = sizeof (struct elf_strtab_hasn_entry *); in _bfd_elf_strtab_init() 116 bfd_malloc (table->alloced * amt)); in _bfd_elf_strtab_init() 168 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_add() local 171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 362 bfd_size_type amt, sec_size; in _bfd_elf_strtab_finalize() local 366 amt = tab->size; in _bfd_elf_strtab_finalize() 367 amt *= sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_finalize() 368 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
|
H A D | archive.c | 823 bfd_size_type amt; in bfd_generic_archive_p() local 1199 bfd_size_type amt; in bfd_slurp_bsd_armap_f2() local 1243 if (bfd_bread (raw_armap, amt, abfd) != amt) in bfd_slurp_bsd_armap_f2() 1265 if (amt > left) in bfd_slurp_bsd_armap_f2() 1307 bfd_size_type amt; in _bfd_slurp_extended_name_table() local 1919 bfd_size_type amt; in bfd_ar_hdr_from_filesystem() local 2259 amt = remaining; in _bfd_write_archive_contents() 2261 if (bfd_bread (buffer, amt, current) != amt) in _bfd_write_archive_contents() 2267 if (bfd_bwrite (buffer, amt, arch) != amt) in _bfd_write_archive_contents() 2269 remaining -= amt; in _bfd_write_archive_contents() [all …]
|
H A D | cofflink.c | 239 bfd_size_type amt; in coff_link_add_symbols() local 587 bfd_size_type amt; in _bfd_coff_final_link() local 752 amt = o->reloc_count; in _bfd_coff_final_link() 756 amt = o->reloc_count; in _bfd_coff_final_link() 801 amt = max_reloc_count * relsz; in _bfd_coff_final_link() 1639 bfd_size_type amt; in _bfd_coff_link_input_bfd() local 1698 amt = strlen (elename) + 1; in _bfd_coff_link_input_bfd() 2198 bfd_size_type amt; in _bfd_coff_link_input_bfd() local 2304 || bfd_bwrite (flaginfo->linenos, amt, output_bfd) != amt) in _bfd_coff_link_input_bfd() 2329 bfd_size_type amt; in _bfd_coff_link_input_bfd() local [all …]
|
H A D | stabs.c | 156 bfd_size_type count, amt; in _bfd_link_section_stabs() local 214 amt = sizeof (struct stab_section_info); in _bfd_link_section_stabs() 215 amt += (count - 1) * sizeof (bfd_size_type); in _bfd_link_section_stabs() 216 *psecinfo = bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 376 amt = sizeof *ne; in _bfd_link_section_stabs() 377 ne = (struct stab_excl_list *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 474 amt = count * sizeof (bfd_size_type); in _bfd_link_section_stabs() 475 secinfo->cumulative_skips = (bfd_size_type *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 516 bfd_size_type count, amt; in _bfd_discard_section_stabs() local 627 amt = count * sizeof (bfd_size_type); in _bfd_discard_section_stabs() [all …]
|
H A D | coffcode.h | 1117 bfd_size_type amt; in handle_COMDAT() local 1766 bfd_size_type amt; in coff_new_section_hook() local 1867 bfd_size_type amt; in coff_set_alignment_hook() local 2299 || bfd_bread (buf, amt, abfd) != amt) in coff_set_arch_mach_hook() 2681 bfd_size_type amt; in coff_write_relocs() local 3877 || bfd_bwrite (& buff, amt, abfd) != amt) in coff_write_object_contents() 3988 bfd_size_type amt; in coff_write_object_contents() local 4003 || bfd_bwrite (& buff, amt, abfd) != amt) in coff_write_object_contents() 4555 bfd_size_type amt; in coff_slurp_line_table() local 4740 bfd_size_type amt; in coff_slurp_symbol_table() local [all …]
|
H A D | dwarf2.c | 879 bfd_size_type amt; in read_abbrevs() local 902 amt = sizeof (struct abbrev_info); in read_abbrevs() 1004 bfd_size_type amt; in read_attribute_value() local 1043 amt = sizeof (struct dwarf_block); in read_attribute_value() 1586 bfd_size_type amt; in sort_line_sequences() local 1663 bfd_size_type amt; in decode_line_info() local 1811 amt *= sizeof (char *); in decode_line_info() 1834 amt *= sizeof (struct fileinfo); in decode_line_info() 2741 bfd_size_type amt; in parse_comp_unit() local 2819 amt = sizeof (struct comp_unit); in parse_comp_unit() [all …]
|
/dragonfly/usr.bin/top/ |
H A D | utils.c | 609 format_k(long amt) in format_k() argument 620 if (amt >= 10000) in format_k() 622 amt = (amt + 512) / 1024; in format_k() 624 if (amt >= 10000) in format_k() 626 amt = (amt + 512) / 1024; in format_k() 631 snprintf(ret, sizeof(retarray[index])-1, "%ld%c", amt, tag); in format_k()
|
/dragonfly/sys/dev/sound/pci/ |
H A D | als4000.c | 562 if (amt[i].bits) v |= 1 << i; in alsmix_init() 567 if (amt[i].iselect) v |= 1 << i; in alsmix_init() 580 mask = ((1 << amt[dev].bits) - 1) << (8 - amt[dev].bits); in alsmix_set() 584 als_mix_wr(sc, amt[dev].lreg, l | v); in alsmix_set() 586 if (amt[dev].rreg) { in alsmix_set() 597 v &= ~amt[dev].oselect; in alsmix_set() 599 v |= amt[dev].oselect; in alsmix_set() 614 l |= amt[i].iselect; in alsmix_setrecsrc() 615 r |= amt[i].iselect; in alsmix_setrecsrc() 617 l |= amt[i].iselect; in alsmix_setrecsrc() [all …]
|
/dragonfly/lib/libssh/openbsd-compat/ |
H A D | bcrypt_pbkdf.c | 122 size_t i, j, amt, stride; in bcrypt_pbkdf() local 135 amt = (keylen + stride - 1) / stride; in bcrypt_pbkdf() 166 amt = MINIMUM(amt, keylen); in bcrypt_pbkdf() 167 for (i = 0; i < amt; i++) { in bcrypt_pbkdf()
|