HomeSort by: relevance | last modified time | path
    Searched defs:tot (Results 1 - 21 of 21) sorted by relevancy

  /src/games/mille/
roll.c 54 int tot; local in function:roll
56 tot = 0;
58 tot += random() % nsides + 1;
59 return tot;
end.c 54 int temp, tot, num; local in function:finalscore
62 for (tot = 5; tot <= 9; tot++)
63 mvaddstr(tot, temp, " 0");
66 tot = SC_TRIP;
69 tot = SC_TRIP + SC_SAFE;
73 tot += SC_DELAY;
77 tot += SC_EXTENSION;
81 tot += SC_SHUT_OUT
99 reg int x, num, tot, count; local in function:extrapolate
    [all...]
  /src/games/monop/
roll.c 52 long tot; local in function:roll
54 tot = 0;
56 tot += (random() % nsides) + 1;
57 return (int)tot;
houses.c 271 int tot; local in function:sell_h
310 for (tot = i = 0; i < mp->num_in; i++)
311 tot += input[i];
312 if (tot) {
313 printf("You asked to sell %d house%s for $%d\n", tot,
314 tot == 1 ? "" : "s", tot * price);
316 cur_p->money += tot * price;
317 for (tot = i = 0; i < mp->num_in; i++)
  /src/sys/arch/mvme68k/stand/sboot/
etherfun.c 99 u_char *tot; local in function:do_send_tftp
102 tot = tftp_r + (sizeof(MSG) - 1);
108 tot = (u_char *)tftp_a + 4;
125 iph->ip_len = tot - (u_char *)iph;
145 udph->uh_ulen = tot - (u_char *)udph;
147 le_put(buf, tot - buf);
  /src/lib/libc/db/recno/
rec_get.c 198 size_t tot = t->bt_rdata.size + (sz = 256); local in function:__rec_vpipe
199 void *np = realloc(t->bt_rdata.data, tot);
202 t->bt_rdata.size = tot;
  /src/regress/sys/fs/lfs/ckckp/
cleanalot_async.c 80 int i, j, tot; local in function:write_dirs
97 tot = 0;
103 return tot;
105 ++tot;
  /src/games/trek/
phaser.c 105 double tot; local in function:phaser
215 tot = n * (n + 1) / 2;
230 b->units = ((n - i) / tot) * extra;
  /src/common/dist/zlib/examples/
gzjoin.c 265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out)
269 *tot = 0;
275 the output, and the gzip trailer is written. crc and tot maintains the
278 of gzcopy() to write the gzip header and to initialize crc and tot. */
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot,
410 /* update crc and tot */
412 *tot += (unsigned long)len;
422 put4(*tot, out);
429 unsigned long crc, tot; /* running crc and total uncompressed length */ local in function:main
443 gzinit(&crc, &tot, stdout)
    [all...]
enough.c 229 big_t tot; // total number of codes with maximum tables size member in struct:__anon5f116f8d0208
gzappend.c 263 unsigned long crc, tot; local in function:gzscan
345 tot = strm->total_out;
346 if ((tot & 0xffffffffUL) != read4(&gz))
372 strm->total_in = tot;
  /src/tests/net/icmp/
t_ping.c 342 size_t tot, frag; local in function:ATF_TC_BODY
416 for (tot = 0;
417 tot < 65538 - sizeof(*ip);
418 tot += (frag - sizeof(*ip))) {
419 frag = MIN(65538 - tot, sizeof(data));
420 ip->ip_off = tot >> 3;
421 assert((size_t)ip->ip_off << 3 == tot);
  /src/sys/rump/net/lib/libsockin/
sockin.c 623 size_t tot, n; local in function:sockin_send
643 tot = 0;
647 tot += m2->m_len;
  /src/usr.bin/col/
col.c 434 int i, j, nchars, last_col, save, this_col, tot; local in function:flush_line
467 for (tot = 0, i = 0; i <= l->l_max_col; i++) {
469 count[i] = tot;
470 tot += save;
  /src/sys/kern/
kern_resource.c 507 uint64_t u, st, ut, it, tot, dt; local in function:calcru
526 tot = st + ut + it;
530 if (tot == 0) {
534 st = (u * st) / tot;
535 ut = (u * ut) / tot;
573 if (it != 0) /* it != 0 --> tot != 0 */
574 it = (u * it) / tot;
kern_sysctl.c 1705 size_t sz, left, tot; local in function:sysctl_describe
1727 tot = 0;
1912 tot += sz;
1925 if (v != -1 && tot == 0)
1928 *oldlenp = tot;
  /src/usr.bin/midiplay/
midiplay.c 371 u_int tot, n, size, nread; local in function:playfile
384 tot = 0;
386 n = fread(buf + tot, 1, nread, f);
387 tot += n;
398 playdata(buf, tot, name);
403 playdata(u_char *buf, u_int tot, const char *name)
417 end = buf + tot;
419 printf("Playing %s (%d bytes)", name, tot);
425 if (tot < MARK_LEN + 4) {
434 if ((u_int)GET32_LE(buf + MARK_LEN) != tot - 8)
    [all...]
  /src/sys/dev/scsipi/
scsipi_base.c 1466 struct scsipi_opcodes *tot = malloc(sizeof(struct scsipi_opcodes), local in function:scsipi_get_opcodeinfo
1470 while (tot != NULL &&
1482 tot->opcode_info[acd->opcode].ti_flags = SCSIPI_TI_VALID;
1509 if (t > tot->opcode_info[acd->opcode].ti_timeout) {
1510 tot->opcode_info[acd->opcode].ti_timeout = t;
1518 periph->periph_opcs = tot;
1520 free(tot, M_DEVBUF);
  /src/sbin/resize_ffs/
resize_ffs.c 1132 off_t j, tot; local in function:markiblk
1153 tot = 0;
1159 tot += j;
1162 return (tot);
  /src/usr.bin/vmstat/
vmstat.c 1752 uint64_t tot; local in function:dopoolcache_sysctl
1794 tot = pp->pr_cache_nhit_global + pp->pr_cache_nmiss_global;
1795 p = pp->pr_cache_nhit_global * 100.0 / tot;
1796 PRWORD(ovflw, " %*" PRIu64, 11, 1, tot);
1799 tot = pp->pr_cache_nhit_pcpu + pp->pr_cache_nmiss_pcpu;
1800 p = pp->pr_cache_nhit_pcpu * 100.0 / tot;
1801 PRWORD(ovflw, " %*" PRIu64, 12, 1, tot);
1815 uint64_t cpuhit, cpumiss, pchit, pcmiss, contended, tot; local in function:dopoolcache
1885 tot = pchit + pcmiss;
1886 p = pchit * 100.0 / (tot);
    [all...]
  /src/usr.sbin/syslogd/
syslogd.c 4890 ssize_t nw = 0, tot = 0; local in function:writev1
4910 tot += nw;
4919 return tot;
4926 return tot == 0 ? nw : tot;

Completed in 35 milliseconds