Home
last modified time | relevance | path

Searched refs:tot (Results 1 – 25 of 110) sorted by relevance

12345

/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dsnprintf-test.c67 int tot = 0; in cmp_with_sprintf_int() local
94 return tot; in cmp_with_sprintf_int()
100 int tot = 0; in cmp_with_sprintf_long() local
127 return tot; in cmp_with_sprintf_long()
138 int tot = 0; in cmp_with_sprintf_long_long() local
169 return tot; in cmp_with_sprintf_long_long()
178 int tot = 0;
221 return tot;
234 int tot = 0; in test_sizet() local
249 tot++; in test_sizet()
[all …]
H A Dreadv.c44 size_t tot = 0; in readv() local
49 tot += iov[i].iov_len; in readv()
50 buf = malloc(tot); in readv()
51 if (tot != 0 && buf == NULL) { in readv()
55 nb = ret = read (d, buf, tot); in readv()
H A Dwritev.c44 size_t tot = 0; in writev() local
49 tot += iov[i].iov_len; in writev()
50 buf = malloc(tot); in writev()
51 if (tot != 0 && buf == NULL) { in writev()
60 ret = write (d, buf, tot); in writev()
H A Drecvmsg.c44 size_t tot = 0; in recvmsg() local
50 tot += iov[i].iov_len; in recvmsg()
51 buf = malloc(tot); in recvmsg()
52 if (tot != 0 && buf == NULL) { in recvmsg()
56 nb = ret = recvfrom (s, buf, tot, flags, msg->msg_name, &msg->msg_namelen); in recvmsg()
H A Dsendmsg.c46 size_t tot = 0; in sendmsg() local
52 tot += iov[i].iov_len; in sendmsg()
53 buf = malloc(tot); in sendmsg()
54 if (tot != 0 && buf == NULL) { in sendmsg()
63 ret = sendto (s, buf, tot, flags, msg->msg_name, msg->msg_namelen); in sendmsg()
/netbsd/games/mille/
H A Dend.c54 int temp, tot, num; in finalscore() local
62 for (tot = 5; tot <= 9; tot++) in finalscore()
66 tot = SC_TRIP; in finalscore()
73 tot += SC_DELAY; in finalscore()
83 pp->total += tot; in finalscore()
104 for (tot = 5; tot <= 9; tot++) in extrapolate()
108 for (count = 0, tot = 0; tot < NUM_SAFE; tot++) in extrapolate()
112 tot += count; in extrapolate()
118 for (count = 0, tot = 0; tot < NUM_SAFE; tot++) in extrapolate()
122 tot += count; in extrapolate()
[all …]
H A Droll.c54 int tot; in roll() local
56 tot = 0; in roll()
58 tot += random() % nsides + 1; in roll()
59 return tot; in roll()
/netbsd/crypto/external/bsd/openssl.old/dist/ms/
H A Dcmp.pl16 $tot=0;
31 $tot+=$n1;
49 $nm=$tot+$n1;
50 $tot+=$i+1;
51 printf STDERR "diff at char $tot of $nm\n";
/netbsd/crypto/external/bsd/openssl/dist/ms/
H A Dcmp.pl16 $tot=0;
31 $tot+=$n1;
49 $nm=$tot+$n1;
50 $tot+=$i+1;
51 printf STDERR "diff at char $tot of $nm\n";
/netbsd/games/monop/
H A Droll.c52 long tot; in roll() local
54 tot = 0; in roll()
56 tot += (random() % nsides) + 1; in roll()
57 return (int)tot; in roll()
H A Dhouses.c271 int tot; in sell_h() local
310 for (tot = i = 0; i < mp->num_in; i++) in sell_h()
311 tot += input[i]; in sell_h()
312 if (tot) { in sell_h()
313 printf("You asked to sell %d house%s for $%d\n", tot, in sell_h()
314 tot == 1 ? "" : "s", tot * price); in sell_h()
316 cur_p->money += tot * price; in sell_h()
317 for (tot = i = 0; i < mp->num_in; i++) in sell_h()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/bn/asm/
H A Dco-586.pl121 local($tot,$end);
135 $tot=$num+$num-1;
149 for ($i=0; $i<$tot; $i++)
163 $v=2 if (($i+1) == $tot);
212 local($b,$tot,$end,$half);
236 $tot=$num+$num-1;
238 for ($i=0; $i<$tot; $i++)
251 $v=2 if ($i+1) == $tot;
/netbsd/crypto/external/bsd/openssl/dist/crypto/bn/asm/
H A Dco-586.pl120 local($tot,$end);
134 $tot=$num+$num-1;
148 for ($i=0; $i<$tot; $i++)
162 $v=2 if (($i+1) == $tot);
211 local($b,$tot,$end,$half);
235 $tot=$num+$num-1;
237 for ($i=0; $i<$tot; $i++)
250 $v=2 if ($i+1) == $tot;
/netbsd/sys/arch/mvme68k/stand/sboot/
H A Detherfun.c99 u_char *tot; in do_send_tftp() local
102 tot = tftp_r + (sizeof(MSG) - 1); in do_send_tftp()
108 tot = (u_char *)tftp_a + 4; in do_send_tftp()
125 iph->ip_len = tot - (u_char *)iph; in do_send_tftp()
145 udph->uh_ulen = tot - (u_char *)udph; in do_send_tftp()
147 le_put(buf, tot - buf); in do_send_tftp()
/netbsd/external/gpl3/gdb/dist/zlib/examples/
H A Dgzjoin.c265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) in gzinit() argument
269 *tot = 0; in gzinit()
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, in gzcopy() argument
412 *tot += (unsigned long)len; in gzcopy()
422 put4(*tot, out); in gzcopy()
429 unsigned long crc, tot; /* running crc and total uncompressed length */ in main() local
443 gzinit(&crc, &tot, stdout); in main()
445 gzcopy(*argv++, argc, &crc, &tot, stdout); in main()
/netbsd/external/gpl3/binutils/dist/zlib/examples/
H A Dgzjoin.c265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) in gzinit() argument
269 *tot = 0; in gzinit()
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, in gzcopy() argument
412 *tot += (unsigned long)len; in gzcopy()
422 put4(*tot, out); in gzcopy()
429 unsigned long crc, tot; /* running crc and total uncompressed length */ in main() local
443 gzinit(&crc, &tot, stdout); in main()
445 gzcopy(*argv++, argc, &crc, &tot, stdout); in main()
/netbsd/external/gpl3/binutils.old/dist/zlib/examples/
H A Dgzjoin.c265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) in gzinit() argument
269 *tot = 0; in gzinit()
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, in gzcopy() argument
412 *tot += (unsigned long)len; in gzcopy()
422 put4(*tot, out); in gzcopy()
429 unsigned long crc, tot; /* running crc and total uncompressed length */ in main() local
443 gzinit(&crc, &tot, stdout); in main()
445 gzcopy(*argv++, argc, &crc, &tot, stdout); in main()
/netbsd/external/gpl3/gdb.old/dist/zlib/examples/
H A Dgzjoin.c265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) in gzinit() argument
269 *tot = 0; in gzinit()
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, in gzcopy() argument
412 *tot += (unsigned long)len; in gzcopy()
422 put4(*tot, out); in gzcopy()
429 unsigned long crc, tot; /* running crc and total uncompressed length */ in main() local
443 gzinit(&crc, &tot, stdout); in main()
445 gzcopy(*argv++, argc, &crc, &tot, stdout); in main()
/netbsd/common/dist/zlib/examples/
H A Dgzjoin.c265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) in gzinit() argument
269 *tot = 0; in gzinit()
279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, in gzcopy() argument
412 *tot += (unsigned long)len; in gzcopy()
422 put4(*tot, out); in gzcopy()
429 unsigned long crc, tot; /* running crc and total uncompressed length */ in main() local
443 gzinit(&crc, &tot, stdout); in main()
445 gzcopy(*argv++, argc, &crc, &tot, stdout); in main()
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/record/
H A Drec_layer_s3.c354 size_t tot; in ssl3_write_bytes() local
364 tot = s->rlayer.wnum; in ssl3_write_bytes()
422 s->rlayer.wnum = tot; in ssl3_write_bytes()
468 *written = tot; in ssl3_write_bytes()
472 n = (len - tot); in ssl3_write_bytes()
515 mb_param.inp = &buf[tot]; in ssl3_write_bytes()
554 tot += tmpwrit; in ssl3_write_bytes()
562 *written = tot; in ssl3_write_bytes()
566 n = (len - tot); in ssl3_write_bytes()
638 s->rlayer.wnum = tot; in ssl3_write_bytes()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/ssl/record/
H A Drec_layer_s3.c348 size_t tot; in ssl3_write_bytes() local
358 tot = s->rlayer.wnum; in ssl3_write_bytes()
417 s->rlayer.wnum = tot; in ssl3_write_bytes()
466 *written = tot; in ssl3_write_bytes()
470 n = (len - tot); in ssl3_write_bytes()
513 mb_param.inp = &buf[tot]; in ssl3_write_bytes()
552 tot += tmpwrit; in ssl3_write_bytes()
560 *written = tot; in ssl3_write_bytes()
564 n = (len - tot); in ssl3_write_bytes()
634 s->rlayer.wnum = tot; in ssl3_write_bytes()
[all …]
/netbsd/regress/sys/fs/lfs/ckckp/
H A Dcleanalot_async.c80 int i, j, tot; in write_dirs() local
97 tot = 0; in write_dirs()
103 return tot; in write_dirs()
105 ++tot; in write_dirs()
/netbsd/tests/net/icmp/
H A Dt_ping.c342 size_t tot, frag; in ATF_TC_BODY() local
416 for (tot = 0; in ATF_TC_BODY()
417 tot < 65538 - sizeof(*ip); in ATF_TC_BODY()
418 tot += (frag - sizeof(*ip))) { in ATF_TC_BODY()
419 frag = MIN(65538 - tot, sizeof(data)); in ATF_TC_BODY()
420 ip->ip_off = tot >> 3; in ATF_TC_BODY()
421 assert((size_t)ip->ip_off << 3 == tot); in ATF_TC_BODY()
/netbsd/crypto/external/bsd/netpgp/dist/src/hkpd/
H A Dhkpd.c102 int tot; in response() local
120 for (tot = 0 ; (wc = write(sock, &outbuf[tot], n - tot)) > 0 && tot < n ; tot += wc) { in response()
/netbsd/external/gpl2/lvm2/dist/lib/uuid/
H A Duuid.c160 int i, tot; in id_write_format() local
172 for (i = 0, tot = 0; i < 7; i++) { in id_write_format()
173 memcpy(buffer, id->uuid + tot, group_size[i]); in id_write_format()
175 tot += group_size[i]; in id_write_format()

12345