/freebsd-10-stable/contrib/apr/file_io/unix/ |
H A D | fullrw.c | 28 apr_size_t amt = nbytes; local 30 status = apr_file_read(thefile, buf, &amt); 31 buf = (char *)buf + amt; 32 nbytes -= amt; 33 total_read += amt; 51 apr_size_t amt = nbytes; local 53 status = apr_file_write(thefile, buf, &amt); 54 buf = (char *)buf + amt; 55 nbytes -= amt; 56 total_written += amt; 72 apr_size_t amt = 0; local [all...] |
/freebsd-10-stable/contrib/top/ |
H A D | utils.c | 421 * format_k(amt) - format a kilobyte memory value, returning a string 423 * area that changes each call. "amt" is converted to a 424 * string with a trailing "K". If "amt" is 10000 or greater, 445 char *format_k(amt) 447 int amt; 459 if (amt >= 10000) 461 amt = (amt + 512) / 1024; 463 if (amt >= 10000) 465 amt [all...] |
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/ |
H A D | InstructionUtils.h | 68 Rotr32 (uint32_t bits, uint32_t amt) 70 assert(amt < 32 && "Invalid rotate amount"); 71 return (bits >> amt) | (bits << ((32-amt)&31)); 76 Rotl32 (uint32_t bits, uint32_t amt) 78 assert(amt < 32 && "Invalid rotate amount"); 79 return (bits << amt) | (bits >> ((32-amt)&31));
|
/freebsd-10-stable/libexec/rtld-elf/ |
H A D | malloc.c | 158 register unsigned amt; local 176 amt = 8; 177 while ((unsigned)pagesz > amt) { 178 amt <<= 1; 190 amt = 8; /* size of first bucket */ 193 amt = 16; /* size of first bucket */ 198 amt = pagesz; 201 while (nbytes > amt + n) { 202 amt <<= 1; 203 if (amt 260 int amt; /* amount to allocate */ local [all...] |
/freebsd-10-stable/usr.sbin/lpr/lpd/ |
H A D | recvjob.c | 260 size_t amt, i; local 272 amt = SPL_BUFSIZ; 274 if (i + amt > size) 275 amt = size - i; 277 j = read(STDOUT_FILENO, cp, amt); 282 amt -= j; 284 } while (amt > 0); 285 amt = SPL_BUFSIZ; 286 if (i + amt > size) 287 amt [all...] |
/freebsd-10-stable/sys/cam/scsi/ |
H A D | scsi_enc_internal.h | 217 #define ENC_MALLOC(amt) malloc(amt, M_SCSIENC, M_NOWAIT) 218 #define ENC_MALLOCZ(amt) malloc(amt, M_SCSIENC, M_ZERO|M_NOWAIT) 228 #define MEMCPY(dest, src, amt) bcopy(src, dest, amt)
|
/freebsd-10-stable/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 170 int amt; local 183 amt = MIN(uio->uio_resid, remain); 184 if (amt == 0) 188 err = uiomove(cp, amt, uio); 193 cp += amt; 194 remain -= amt;
|
/freebsd-10-stable/contrib/tcpdump/ |
H A D | print-ripng.c | 66 register u_int amt; local 73 amt = snapend - dat; 74 i = min(length, amt);
|
/freebsd-10-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | spillbuf.c | 298 apr_size_t amt; local 314 amt = buf->blocksize - mem->size; 315 if (amt > len) 316 amt = len; 319 memcpy(&mem->data[mem->size], data, amt); 320 mem->size += amt; 321 data += amt; 322 len -= amt; 327 buf->memory_size += amt; 542 svn_spillbuf__reader_read(apr_size_t *amt, argument 617 apr_size_t amt; local [all...] |
/freebsd-10-stable/contrib/binutils/bfd/ |
H A D | osf-core.c | 90 bfd_size_type amt; local 92 amt = sizeof core_header; 93 val = bfd_bread ((PTR) &core_header, amt, abfd); 113 amt = sizeof core_scnhdr; 114 val = bfd_bread ((PTR) &core_scnhdr, amt, abfd);
|
H A D | elf-strtab.c | 97 bfd_size_type amt = sizeof (struct elf_strtab_hash); local 99 table = bfd_malloc (amt); 113 amt = sizeof (struct elf_strtab_hasn_entry *); 114 table->array = bfd_malloc (table->alloced * amt); 166 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); local 168 tab->array = bfd_realloc (tab->array, tab->alloced * amt); 303 bfd_size_type size, amt; local 312 amt = tab->size * sizeof (struct elf_strtab_hash_entry *); 313 array = bfd_malloc (amt);
|
H A D | archive.c | 183 bfd_size_type amt = sizeof (struct artdata); 185 abfd->tdata.aout_ar_data = bfd_zalloc (abfd, amt); 613 bfd_size_type amt; 628 amt = sizeof (struct artdata); 629 bfd_ardata (abfd) = bfd_zalloc (abfd, amt); 715 bfd_size_type parsed_size, amt; 752 amt = ardata->symdef_count * sizeof (carsym); 753 ardata->symdefs = bfd_alloc (abfd, amt); 958 bfd_size_type amt; 985 amt 181 bfd_size_type amt = sizeof (struct artdata); local 609 bfd_size_type amt; local 711 bfd_size_type parsed_size, amt; local 953 bfd_size_type amt; local 1056 bfd_size_type amt; local 1366 bfd_size_type amt; local 1729 unsigned int amt = DEFAULT_BUFFERSIZE; local 1791 bfd_size_type amt; local [all...] |
H A D | coff-ppc.c | 198 bfd_size_type amt = sizeof (struct ppc_coff_link_hash_table); local 200 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt); 836 bfd_size_type amt = sizeof (struct list_ele); 837 struct list_ele *t = (struct list_ele *) bfd_malloc (amt); 895 bfd_size_type amt; 898 amt = (bfd_size_type) obj_raw_syment_count (abfd) * sizeof (int); 899 local_syms = (int *) bfd_zalloc (abfd, amt); 1591 bfd_size_type amt; 1606 amt = global_toc_size; 1607 foo = (bfd_byte *) bfd_alloc (bfd_of_toc_owner, amt); 830 bfd_size_type amt = sizeof (struct list_ele); local 889 bfd_size_type amt; local 1584 bfd_size_type amt; local 2077 bfd_size_type amt; local [all...] |
H A D | elfcore.h | 81 bfd_size_type amt; local 189 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; 190 i_phdrp = bfd_alloc (abfd, amt);
|
H A D | format.c | 144 bfd_size_type amt; local 147 amt = sizeof (*matching_vector) * 2 * _bfd_target_vector_entries; 148 matching_vector = bfd_malloc (amt);
|
H A D | ptrace-core.c | 65 bfd_size_type amt; local 81 amt = sizeof (struct trad_core_struct); 82 rawptr = (struct trad_core_struct *) bfd_zalloc (abfd, amt);
|
H A D | cofflink.c | 110 bfd_size_type amt = sizeof (struct coff_link_hash_table); local 112 ret = bfd_malloc (amt); 302 bfd_size_type amt; local 318 amt = symcount * sizeof (struct coff_link_hash_entry *); 319 sym_hash = bfd_zalloc (abfd, amt); 596 amt = sizeof (struct coff_section_tdata); 597 stab->used_by_bfd = bfd_zalloc (abfd, amt); 648 bfd_size_type amt; 770 amt = abfd->section_count + 1; 771 amt * 647 bfd_size_type amt; local 1570 bfd_size_type amt; local 2125 bfd_size_type amt; local 2256 bfd_size_type amt; local [all...] |
H A D | dwarf2.c | 431 bfd_size_type amt; local 461 amt = sizeof (struct abbrev_info*) * ABBREV_HASH_SIZE; 462 abbrevs = bfd_zalloc (abfd, amt); 471 amt = sizeof (struct abbrev_info); 472 cur_abbrev = bfd_zalloc (abfd, amt); 494 amt = cur_abbrev->num_attrs + ATTR_ALLOC_CHUNK; 495 amt *= sizeof (struct attr_abbrev); 496 tmp = bfd_realloc (cur_abbrev->attrs, amt); 560 bfd_size_type amt; local 573 amt 788 bfd_size_type amt = sizeof (struct line_info); local 979 bfd_size_type amt; local 1710 bfd_size_type amt = sizeof (struct funcinfo); local 1730 bfd_size_type amt = sizeof (struct varinfo); local 1911 bfd_size_type amt; local 2250 bfd_size_type amt; local 2349 bfd_size_type amt = sizeof (struct dwarf2_debug); local [all...] |
H A D | stabs.c | 157 bfd_size_type count, amt; 215 amt = sizeof (struct stab_section_info); 216 amt += (count - 1) * sizeof (bfd_size_type); 217 *psecinfo = bfd_alloc (abfd, amt); 377 amt = sizeof *ne; 378 ne = bfd_alloc (abfd, amt); 473 amt = count * sizeof (bfd_size_type); 474 secinfo->cumulative_skips = bfd_alloc (abfd, amt); 516 bfd_size_type count, amt; 627 amt 155 bfd_size_type count, amt; local 513 bfd_size_type count, amt; local [all...] |
H A D | xcofflink.c | 134 bfd_size_type amt = sizeof (struct coff_section_tdata); 136 sec->used_by_bfd = bfd_zalloc (abfd, amt); 444 bfd_size_type amt = sizeof (* ret); 446 ret = bfd_malloc (amt); 969 bfd_size_type amt; 1004 amt = symcount * sizeof (struct xcoff_link_hash_entry *); 1005 sym_hash = bfd_zalloc (abfd, amt); 1013 amt = symcount * sizeof (asection *); 1014 csect_cache = bfd_zalloc (abfd, amt); 1024 amt 133 bfd_size_type amt = sizeof (struct coff_section_tdata); local 442 bfd_size_type amt = sizeof (* ret); local 965 bfd_size_type amt; local 2418 bfd_size_type amt; local 2539 bfd_size_type amt = sizeof (* n); local 2581 bfd_size_type amt = strlen (h->root.root.string) + 2; local 2683 bfd_size_type amt; local 2990 bfd_size_type amt; local 4081 bfd_size_type amt = linesz * enc_count; local 4233 bfd_size_type amt = outsym - finfo->outsyms; local 4353 bfd_size_type amt; local 4601 bfd_size_type amt; local 5343 bfd_size_type amt; local [all...] |
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | bcrypt_pbkdf.c | 119 size_t i, j, amt, stride; local 132 amt = (keylen + stride - 1) / stride; 163 amt = MINIMUM(amt, keylen); 164 for (i = 0; i < amt; i++) {
|
/freebsd-10-stable/bin/rcp/ |
H A D | rcp.c | 358 int amt, fd, haderr, indx, result; local 412 amt = bp->cnt; 413 if (i + amt > stb.st_size) 414 amt = stb.st_size - i; 416 result = read(fd, bp->buf, amt); 417 if (result != amt) 421 (void)write(rem, bp->buf, amt); 423 result = write(rem, bp->buf, amt); 424 if (result != amt) 498 int amt, exist local [all...] |
/freebsd-10-stable/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 283 off_t amt; local 334 amt = bp->cnt; 335 if (i + amt > stb.st_size) 336 amt = stb.st_size - i; 338 result = read(fd, bp->buf, (size_t)amt); 339 if (result != amt) 343 write(remout, bp->buf, amt); 345 result = write(remout, bp->buf, (size_t)amt); 346 if (result != amt) 421 int amt, coun local [all...] |
/freebsd-10-stable/crypto/openssh/ |
H A D | scp.c | 765 size_t amt, nr; local 833 amt = bp->cnt; 834 if (i + (off_t)amt > stb.st_size) 835 amt = stb.st_size - i; 838 bp->buf, amt)) != amt) { 840 memset(bp->buf + nr, 0, amt - nr); 845 (void)atomicio(vwrite, remout, bp->buf, amt); 846 memset(bp->buf, 0, amt); 849 if (atomicio6(vwrite, remout, bp->buf, amt, scpi 930 int amt, exists, first, ofd; local [all...] |
/freebsd-10-stable/sys/dev/sound/pci/ |
H A D | als4000.c | 537 } static const amt[SOUND_MIXER_NRDEVICES] = { variable 558 if (amt[i].bits) v |= 1 << i; 563 if (amt[i].iselect) v |= 1 << i; 576 mask = ((1 << amt[dev].bits) - 1) << (8 - amt[dev].bits); 579 v = als_mix_rd(sc, amt[dev].lreg) & ~mask; 580 als_mix_wr(sc, amt[dev].lreg, l | v); 582 if (amt[dev].rreg) { 584 v = als_mix_rd(sc, amt[dev].rreg) & ~mask; 585 als_mix_wr(sc, amt[de [all...] |