| /netbsd/src/games/canfield/cfscores/ |
| D | cfscores.c | 107 struct betinfo total; in printuser() local 120 i = read(dbfd, &total, sizeof(total)); in printuser() 123 if (i == 0 || total.hand == 0) { in printuser() 129 if (total.worth >= 0) in printuser() 135 printf("| Hands %8ld |\n", total.hand); in printuser() 136 printf("| Inspections %8ld |\n", total.inspection); in printuser() 137 printf("| Games %8ld |\n", total.game); in printuser() 138 printf("| Runs %8ld |\n", total.runs); in printuser() 139 printf("| Information %8ld |\n", total.information); in printuser() 140 printf("| Think time %8ld |\n", total.thinktime); in printuser() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | timevar.cc | 136 void print (FILE *fp, const timevar_time_def *total); 199 timer::named_items::print (FILE *fp, const timevar_time_def *total) in print() argument 206 m_timer->print_row (fp, total, def->name, def->elapsed); in print() 585 const timevar_time_def *total = &m_timevars[TV_TOTAL].elapsed; in validate_phases() local 610 if (phase_user > total->user * tolerance in validate_phases() 611 || phase_sys > total->sys * tolerance in validate_phases() 612 || phase_wall > total->wall * tolerance in validate_phases() 613 || phase_ggc_mem > total->ggc_mem * tolerance) in validate_phases() 617 if (phase_user > total->user) in validate_phases() 618 fprintf (fp, "user %24.18e > %24.18e\n", phase_user, total->user); in validate_phases() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/lib/ |
| D | read1.c | 113 ssize_t res, total; in read() local 117 total = 0; in read() 120 res = read2 (fd, (char *)buf + total, count - total); in read() 124 iteration, fd, count - total, res, in read() 131 total = -1; in read() 135 if (total > 0 in read() 144 total = -1; in read() 148 total += res; in read() 149 if (total == count) in read() 165 total, total == -1 ? strerror (errno) : "none"); in read() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/config/lm32/ |
| D | lm32.cc | 70 int *total, bool speed); 926 int opno ATTRIBUTE_UNUSED, int *total, bool speed) in lm32_rtx_costs() argument 952 *total = COSTS_N_INSNS (LM32_NUM_REGS (mode)); in lm32_rtx_costs() 954 *total = in lm32_rtx_costs() 962 *total = COSTS_N_INSNS (1); in lm32_rtx_costs() 964 *total = COSTS_N_INSNS (compare_latency); in lm32_rtx_costs() 969 *total = COSTS_N_INSNS (LM32_NUM_REGS (mode) * (2 + 3) / 2); in lm32_rtx_costs() 979 *total = COSTS_N_INSNS (1); in lm32_rtx_costs() 981 *total = COSTS_N_INSNS (shift_latency); in lm32_rtx_costs() 986 *total = COSTS_N_INSNS (LM32_NUM_REGS (mode) * 4); in lm32_rtx_costs() [all …]
|
| /netbsd/src/games/mille/ |
| D | mille.c | 103 if (!restore || (Player[PLAYER].total >= 5000 in main() 104 || Player[COMP].total >= 5000)) { in main() 105 if (Player[COMP].total < Player[PLAYER].total) in main() 107 else if (Player[COMP].total > Player[PLAYER].total) in main() 109 Player[COMP].total = 0; in main() 110 Player[PLAYER].total = 0; in main() 131 } while (Player[COMP].total < 5000 in main() 132 && Player[PLAYER].total < 5000); in main()
|
| D | misc.c | 225 if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) in check_more() 232 if (Player[PLAYER].total > Player[COMP].total) in check_more() 234 else if (Player[PLAYER].total < Player[COMP].total) in check_more() 236 Player[COMP].total = 0; in check_more() 237 Player[PLAYER].total = 0; in check_more()
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/python/lib/gdb/command/ |
| D | pretty_printers.py | 187 total = 0 194 total += len(printer.subprinters) 198 total += 1 199 return (enabled, total) 253 total = 0 267 total += 1 281 total += 1 297 total += 1 299 return total 306 total = 0 [all …]
|
| D | unwinders.py | 122 total = 0 126 total += 1 127 return total 133 total = 0 135 total += do_enable_unwinder1(gdb.frame_unwinders, name_re, flag) 137 total += do_enable_unwinder1( 142 total += do_enable_unwinder1(objfile.frame_unwinders, name_re, flag) 143 if total > 0: 147 % (total, "" if total == 1 else "s", "enabled" if flag else "disabled")
|
| D | missing_debug.py | 148 total = 0 152 total += 1 153 return total 159 total = 0 161 total += do_enable_handler1(gdb.missing_debug_handlers, name_re, flag) 163 total += do_enable_handler1( 169 total += do_enable_handler1(progspace.missing_debug_handlers, name_re, flag) 172 % (total, "" if total == 1 else "s", "enabled" if flag else "disabled")
|
| /netbsd/src/sys/arch/ews4800mips/stand/common/ |
| D | inckern.c | 42 int err, i, n, total, nulldata; in main() local 46 total = 0; in main() 54 total = strtoul(optarg, 0, 0); in main() 58 if ((optarg == 0) || (total != 0) || in main() 74 fprintf(ofd, "%d];\n", total); in main() 75 fprintf(ofd, "int kernel_binary_size = %d;\n", total); in main() 84 total += n; in main() 86 fprintf(ofd, "\n};\nint kernel_binary_size = %d;\n", total); in main()
|
| /netbsd/src/external/bsd/cron/dist/ |
| D | pw_dup.c | 59 size_t nsize, psize, gsize, dsize, ssize, total; in pw_dup() local 66 total = sizeof(struct passwd); in pw_dup() 69 total += nsize; in pw_dup() 74 total += psize; in pw_dup() 80 total += csize; in pw_dup() 86 total += gsize; in pw_dup() 91 total += dsize; in pw_dup() 96 total += ssize; in pw_dup() 99 if ((newpw = malloc(total)) == NULL) in pw_dup()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/libldap/ |
| D | fetch.c | 109 size_t total; in ldif_fetch_url() local 121 total = 0; in ldif_fetch_url() 124 char *newp = ber_memrealloc( p, total + bytes + 1 ); in ldif_fetch_url() 131 AC_MEMCPY( &p[total], buffer, bytes ); in ldif_fetch_url() 132 total += bytes; in ldif_fetch_url() 137 if( total == 0 ) { in ldif_fetch_url() 146 p[total] = '\0'; in ldif_fetch_url() 148 *vlenp = total; in ldif_fetch_url()
|
| /netbsd/src/distrib/utils/embedded/ |
| D | mkpkgs | 110 total=0 112 total=$(expr $total + $(sizeone ${pkgdir}/${p}-*.tgz)) 114 total=$(expr \( $total / 1000000 \) + 2) 117 size=${total} 120 if [ ${total} -gt ${size} ]; then 121 echo "File system size given as ${size} MB, but it needs ${total} MB" >&2
|
| /netbsd/src/sys/arch/mac68k/obio/ |
| D | ascaudio.c | 398 int total; in ascaudio_start_output() local 446 total = blksize; in ascaudio_start_output() 448 total = sc->sc_playbuf + BUFSIZE - sc->sc_putptr; in ascaudio_start_output() 450 if (total) { in ascaudio_start_output() 451 memcpy(sc->sc_putptr, loc, total); in ascaudio_start_output() 452 sc->sc_putptr += total; in ascaudio_start_output() 453 loc += total; in ascaudio_start_output() 456 total = blksize - total; in ascaudio_start_output() 457 if (total) { in ascaudio_start_output() 459 memcpy(sc->sc_playbuf, loc, total); in ascaudio_start_output() [all …]
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive/ |
| D | archive_read_support_filter_uu.c | 49 int64_t total; member 467 ssize_t total; in uudecode_filter_read() local 481 total = 0; in uudecode_filter_read() 516 (uudecode->total > 0 || total > 0)) { in uudecode_filter_read() 528 if (total == 0 && ravail <= 0) { in uudecode_filter_read() 545 if (total == 0) { in uudecode_filter_read() 559 if (total + len >= UUENCODE_BID_MAX_READ) { in uudecode_filter_read() 604 if (total + len * 2 > OUT_BUFF_SIZE) in uudecode_filter_read() 633 *out++ = n >> 16; total++; in uudecode_filter_read() 640 *out++ = (n >> 8) & 0xFF; total++; in uudecode_filter_read() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/common/ |
| D | cgen-engine.h | 54 #define EXTRACT_MSB0_SINT(val, total, start, length) \ argument 55 (((INT) (val) << ((sizeof (INT) * 8) - (total) + (start))) \ 57 #define EXTRACT_MSB0_UINT(val, total, start, length) \ argument 58 (((UINT) (val) << ((sizeof (UINT) * 8) - (total) + (start))) \ 61 #define EXTRACT_LSB0_SINT(val, total, start, length) \ argument 64 #define EXTRACT_LSB0_UINT(val, total, start, length) \ argument 68 #define EXTRACT_MSB0_LGSINT(val, total, start, length) \ argument 69 (((CGEN_INSN_LGSINT) (val) << ((sizeof (CGEN_INSN_LGSINT) * 8) - (total) + (start))) \ 71 #define EXTRACT_MSB0_LGUINT(val, total, start, length) \ argument 72 (((CGEN_INSN_UINT) (val) << ((sizeof (CGEN_INSN_LGUINT) * 8) - (total) + (start))) \ [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/config/vax/ |
| D | vax.cc | 817 int *total, bool speed ATTRIBUTE_UNUSED) in vax_rtx_costs() argument 833 *total = COSTS_N_INSNS (1) / 2; in vax_rtx_costs() 838 *total = ((unsigned HOST_WIDE_INT) ~INTVAL (x) <= 077 in vax_rtx_costs() 848 *total = COSTS_N_INSNS (1); in vax_rtx_costs() 856 *total = COSTS_N_INSNS (3); in vax_rtx_costs() 861 *total = vax_float_literal (x) ? COSTS_N_INSNS (5) : COSTS_N_INSNS (8); in vax_rtx_costs() 863 *total = ((CONST_DOUBLE_HIGH (x) == 0 in vax_rtx_costs() 872 *total = COSTS_N_INSNS (2); in vax_rtx_costs() 876 *total = COSTS_N_INSNS (3); in vax_rtx_costs() 883 *total = COSTS_N_INSNS (16); /* 4 on VAX 9000 */ in vax_rtx_costs() [all …]
|
| /netbsd/src/games/rogue/ |
| D | hit.c | 180 int i = 0, j, n, d, total = 0; in get_damage() local 201 total += get_rand(1, d); in get_damage() 203 total += d; in get_damage() 207 return(total); in get_damage() 239 int total = 0; in get_number() local 242 total = (10 * total) + (s[i] - '0'); in get_number() 245 return(total); in get_number() 252 long total = 0; in lget_number() local 255 total = (10 * total) + (s[i] - '0'); in lget_number() 258 return(total); in lget_number()
|
| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | ntp_signd.c | 67 size_t total = 0; in write_all() local 70 if (n <= 0) return total; in write_all() 73 total += n; in write_all() 75 return total; in write_all() 84 size_t total = 0; in read_all() local 87 if (n <= 0) return total; in read_all() 90 total += n; in read_all() 92 return total; in read_all()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/lhash/ |
| D | lh_stats.c | 99 unsigned long total = 0, n_used = 0; in OPENSSL_LH_node_usage_stats_bio() local 106 total += num; in OPENSSL_LH_node_usage_stats_bio() 110 BIO_printf(out, "%lu items\n", total); in OPENSSL_LH_node_usage_stats_bio() 114 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio() 115 (int)((total % lh->num_nodes) * 100 / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio() 116 (int)(total / n_used), (int)((total % n_used) * 100 / n_used)); in OPENSSL_LH_node_usage_stats_bio()
|
| /netbsd/src/games/canfield/canfield/ |
| D | canfield.c | 187 static struct betinfo this, game, total; variable 671 total.wins += valuepercardup; in fndbase() 736 total.hand += costofhand; in startgame() 893 total.runs += costofrunthroughhand; in movetotalon() 933 total.information += costofinformation; in movetotalon() 979 total.information += costofinformation; in showstat() 991 total.information += costofinformation; in showstat() 1031 total.information += costofinformation; in usedtalon() 1123 total.thinktime += dollars; in updatebettinginfo() 1129 totalcosts = total.hand + total.inspection + total.game + in updatebettinginfo() [all …]
|
| /netbsd/src/external/gpl2/xcvs/dist/src/ |
| D | gssapi-client.c | 155 size_t total; in connect_to_gserver() local 164 total = 2; in connect_to_gserver() 165 while ((got = recv (sock, buf + total, sizeof buf - total, 0))) in connect_to_gserver() 170 total += got; in connect_to_gserver() 171 if (strrchr (buf + total - got, '\n')) in connect_to_gserver() 174 buf[total] = '\0'; in connect_to_gserver() 175 if (buf[total - 1] == '\n') in connect_to_gserver() 176 buf[total - 1] = '\0'; in connect_to_gserver()
|
| /netbsd/src/usr.bin/ftp/ |
| D | ssl.c | 100 ssize_t len, total; in fetch_writev() local 110 total = 0; in fetch_writev() 148 total += len; in fetch_writev() 159 return total; in fetch_writev() 409 ssize_t rlen, total; in fetch_read() local 419 total = 0; in fetch_read() 430 total = (conn->cache.len < len) ? conn->cache.len : len; in fetch_read() 431 memcpy(buf, conn->cache.buf, total); in fetch_read() 433 conn->cache.len -= total; in fetch_read() 434 conn->cache.pos += total; in fetch_read() [all …]
|
| /netbsd/src/usr.sbin/mopd/common/ |
| D | file.c | 917 int32_t pos, notdone, total; in mopFileRead() local 985 total = dlslot->a_text; in mopFileRead() 987 if (pos < total) { in mopFileRead() 988 notdone = total - pos; in mopFileRead() 999 total = total + dlslot->a_text_fill; in mopFileRead() 1001 if ((bsz > 0) && (pos < total)) { in mopFileRead() 1002 notdone = total - pos; in mopFileRead() 1014 total = total + dlslot->a_data; in mopFileRead() 1016 if ((bsz > 0) && (pos < total)) { in mopFileRead() 1017 notdone = total - pos; in mopFileRead() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/config/avr/ |
| D | avr.cc | 11342 int total; in avr_operand_rtx_cost() local 11359 total = 0; in avr_operand_rtx_cost() 11360 avr_rtx_costs (x, mode, outer, opno, &total, speed); in avr_operand_rtx_cost() 11361 return total; in avr_operand_rtx_cost() 11372 int opno ATTRIBUTE_UNUSED, int *total, bool speed) in avr_rtx_costs_1() argument 11386 *total = 0; in avr_rtx_costs_1() 11390 *total = COSTS_N_INSNS (GET_MODE_SIZE (mode)); in avr_rtx_costs_1() 11398 *total = COSTS_N_INSNS (1); in avr_rtx_costs_1() 11404 *total = COSTS_N_INSNS (2 * GET_MODE_SIZE (mode) - 1); in avr_rtx_costs_1() 11410 *total += avr_operand_rtx_cost (XEXP (x, 0), mode, code, 0, speed); in avr_rtx_costs_1() [all …]
|