| /src/sys/arch/hpc/stand/libz/ |
| zalloc.c | 37 size_t total = items * size; local 39 opaque = malloc(total); 41 memset(opaque, 0, total);
|
| /src/external/gpl3/gdb.old/dist/gdbsupport/ |
| gdb-hashtab.cc | 27 size_t total = size * count; local 28 void *ptr = obstack_alloc ((struct obstack *) data, total); 30 memset (ptr, 0, total);
|
| /src/external/lgpl3/mpc/dist/tests/ |
| clear_parameters.c | 71 int total = params->nbout + params->nbin; local 77 clear_param (&(params->P[total + out]), params->T[out]); 80 for (in = params->nbout; in < total; in++)
|
| init_parameters.c | 72 int total = params->nbout + params->nbin; local 77 init_param (&(params->P[total + out]), params->T[total + out]); 80 for (in = params->nbout; in < total; in++)
|
| check_data.c | 78 int total = params->nbout + params->nbin; local 82 if (!check_param (&(params->P[out]), &(params->P[total + out]), 111 (total + i > params->nbout ? ' ' : i + '0')); 114 (total + i > params->nbout ? ' ' : i + '0')); 115 print_parameter (params, total + i);
|
| /src/lib/libc/stdio/ |
| fread.c | 59 size_t total; local 84 total = resid; 100 count = (total - resid) / size; 131 return (total - resid) / size;
|
| /src/usr.bin/cksum/ |
| sum1.c | 53 off_t total; local 63 thecrc = total = 0; 65 for (total += nr, p = buf; nr--; ++p) { 74 *clen = total;
|
| sum2.c | 54 off_t total; local 67 total = 0; 69 for (total += nr, p = buf; nr--; ++p) 78 *clen = total;
|
| /src/external/bsd/zstd/dist/tests/ |
| loremOut.c | 29 unsigned long long total = 0; local 36 while (total < size) { 38 LOREM_genBlock(buff, genBlockSize, seed++, total == 0, 0); 40 total += generated; 41 assert(total <= size); 46 if (size - total < genBlockSize) 47 genBlockSize = (size_t)(size - total); 49 assert(total == size);
|
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| full-write.c | 62 size_t total = 0; local 75 total += n_rw; 80 return total;
|
| /src/games/canfield/cfscores/ |
| cfscores.c | 107 struct betinfo total; local 120 i = read(dbfd, &total, sizeof(total)); 123 if (i == 0 || total.hand == 0) { 129 if (total.worth >= 0) 134 printf("|Costs Total |\n"); 135 printf("| Hands %8ld |\n", total.hand); 136 printf("| Inspections %8ld |\n", total.inspection); 137 printf("| Games %8ld |\n", total.game); 138 printf("| Runs %8ld |\n", total.runs) [all...] |
| /src/lib/libc/db/recno/ |
| rec_search.c | 75 recno_t total; local 79 for (pg = P_ROOT, total = 0;;) { 84 t->bt_cur.index = recno - total; 89 if (++idx == top || total + r->nrecs > recno) 91 total += r->nrecs;
|
| /src/sbin/newfs_v7fs/ |
| newfs_v7fs.h | 41 off_t total; member in struct:progress_arg
|
| /src/sys/arch/ews4800mips/stand/common/ |
| inckern.c | 42 int err, i, n, total, nulldata; local 46 total = 0; 54 total = strtoul(optarg, 0, 0); 58 if ((optarg == 0) || (total != 0) || 74 fprintf(ofd, "%d];\n", total); 75 fprintf(ofd, "int kernel_binary_size = %d;\n", total); 84 total += n; 86 fprintf(ofd, "\n};\nint kernel_binary_size = %d;\n", total);
|
| /src/external/bsd/cron/dist/ |
| pw_dup.c | 59 size_t nsize, psize, gsize, dsize, ssize, total; local 66 total = sizeof(struct passwd); 69 total += nsize; 74 total += psize; 80 total += csize; 86 total += gsize; 91 total += dsize; 96 total += ssize; 99 if ((newpw = malloc(total)) == NULL)
|
| /src/external/bsd/openldap/dist/libraries/libldap/ |
| fetch.c | 111 size_t total; local 123 total = 0; 126 char *newp = ber_memrealloc( p, total + bytes + 1 ); 133 AC_MEMCPY( &p[total], buffer, bytes ); 134 total += bytes; 139 if( total == 0 ) { 148 p[total] = '\0'; 150 *vlenp = total;
|
| /src/external/gpl3/gcc.old/dist/contrib/ |
| filter-clang-warnings.py | 72 total = 0 variable 81 total += 1 86 print('\nTotal warnings: %d' % total)
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| average.c | 14 int total = 0, num_elements = 0, average = 0; local 15 total = sum(list, low, high); 18 average = total / num_elements;
|
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| average.c | 14 int total = 0, num_elements = 0, average = 0; local 15 total = sum(list, low, high); 18 average = total / num_elements;
|
| /src/games/backgammon/common_source/ |
| odds.c | 72 int total; local 74 total = 0; 77 total += table[i][j]; 78 return (total);
|
| /src/sbin/fsck_v7fs/ |
| fsck_v7fs.h | 51 off_t total; member in struct:progress_arg
|
| inode.c | 48 int total; member in struct:ilistcheck_arg 127 arg->total++; 138 struct ilistcheck_arg arg = { .total = 0, .alloc = 0 }; 143 int nfree = arg.total - arg.alloc; 146 pwarn("*** corrupt total freeinode. %d(sb) != %d(cnt)\n", 158 pwarn("\ninode usage: %d/%d (%d)\n", arg.alloc, arg.total, nfree);
|
| /src/sys/arch/aarch64/aarch64/ |
| procfs_machdep.c | 41 /* use variables named 'buf', 'left', 'total' */ 44 total += _len; \ 64 size_t left, total; local 73 total = 0; 180 return total; 188 size_t left, len, total; local 192 total = 0; 213 if (total >= *lenp) 216 *lenp = total + 1; /* total output + '\0' * [all...] |
| /src/sys/kern/ |
| subr_localcount.c | 100 int64_t total = 0; local 106 lc->lc_totalp = &total; 120 while (total != 0) { 123 * references on all CPUs, the total had better be 126 KASSERTMSG((0 < total), 128 lc, total); 154 * global total, resetting the per-CPU counter to zero. Once 155 * localcount_drain() has started, we only maintain the total 279 * Return a total reference count of lc. It returns a correct value
|
| /src/sys/uvm/ |
| uvm_stat.c | 109 (*pr)(" ok relocks(total)=%" PRId64 "(%" PRId64 "), " 152 UVM_RA_EVCNT_DEFINE(total); variable
|