Symbol: cost
games/monop/execute.c
170
printf("That would cost $%d\n", sqp->cost);
games/monop/execute.c
173
cur_p->money -= sqp->cost;
games/monop/monop.h
78
int cost; /* cost */
games/monop/morg.c
131
price = board[prop].cost/2;
games/monop/morg.c
189
price = board[prop].cost/2;
games/monop/print.c
105
sqp->cost);
games/monop/print.c
99
printf(" - %-8.8s %3d", pp->mon_desc->name, sqp->cost);
games/monop/prop.c
204
worth += op->sqr->cost;
games/phantasia/misc.c
229
double cost; /* cost of purchase */
games/phantasia/misc.c
255
cost = blessingcost;
games/phantasia/misc.c
257
cost = Menu[loop].cost;
games/phantasia/misc.c
258
printw("(%d) %-12s: %6.0f\n", loop + 1, Menu[loop].item, cost);
games/phantasia/misc.c
296
Menu[0].cost, floor(Player.p_gold / Menu[0].cost));
games/phantasia/misc.c
297
cost = (numitems = floor(infloat())) * Menu[0].cost;
games/phantasia/misc.c
299
if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
303
Player.p_gold -= cost;
games/phantasia/misc.c
313
Menu[1].cost, floor(Player.p_gold / Menu[1].cost));
games/phantasia/misc.c
314
cost = (numitems = floor(infloat())) * Menu[1].cost;
games/phantasia/misc.c
318
else if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
324
Player.p_gold -= cost;
games/phantasia/misc.c
334
Menu[2].cost, floor(Player.p_gold / Menu[2].cost));
games/phantasia/misc.c
335
cost = (numitems = floor(infloat())) * Menu[2].cost;
games/phantasia/misc.c
337
if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
341
Player.p_gold -= cost;
games/phantasia/misc.c
356
Menu[3].cost, floor(Player.p_gold / Menu[3].cost));
games/phantasia/misc.c
357
cost = (numitems = floor(infloat())) * Menu[3].cost;
games/phantasia/misc.c
361
else if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
367
Player.p_gold -= cost;
games/phantasia/misc.c
377
Menu[4].cost, floor(Player.p_gold / Menu[4].cost));
games/phantasia/misc.c
378
cost = (numitems = floor(infloat())) * Menu[4].cost;
games/phantasia/misc.c
380
if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
384
Player.p_gold -= cost;
games/phantasia/misc.c
394
Menu[5].cost, floor(Player.p_gold / Menu[5].cost));
games/phantasia/misc.c
395
cost = (numitems = floor(infloat())) * Menu[5].cost;
games/phantasia/misc.c
399
else if (cost > Player.p_gold || numitems < 0)
games/phantasia/misc.c
405
Player.p_gold -= cost;
games/phantasia/phantstruct.h
129
double cost; /* cost of item */
games/trek/computer.c
110
int cost;
games/trek/computer.c
228
cost = pow(0.90, dist) * 98.0 + 0.5;
games/trek/computer.c
229
printf("Phasers are %d%% effective at that range\n", cost);
games/trek/computer.c
239
cost = (dist + 0.05) * warpfact * warpfact * warpfact;
games/trek/computer.c
242
warpfact, dist, time, cost, cost + cost);
games/trek/computer.c
249
cost = 20 + 100 * dist;
games/trek/computer.c
252
dist, time, cost);
lib/libcurses/tty/hashmap.c
143
int cost = 0;
lib/libcurses/tty/hashmap.c
149
cost++;
lib/libcurses/tty/hashmap.c
151
return cost;
lib/libcurses/tty/hashmap.c
157
int cost = 0;
lib/libcurses/tty/hashmap.c
167
cost++;
lib/libcurses/tty/hashmap.c
169
return cost;
lib/libcurses/tty/lib_mvcur.c
272
int cost = NCURSES_SP_NAME(_nc_msec_cost) (NCURSES_SP_ARGx cap, affcnt);
lib/libcurses/tty/lib_mvcur.c
273
if (cost != INFINITY)
lib/libcurses/tty/lib_mvcur.c
274
cost = (cost + SP_PARM->_char_padding - 1) / SP_PARM->_char_padding;
lib/libcurses/tty/lib_mvcur.c
275
return cost;
sys/kern/kern_sched.c
471
int cost = sched_proc_to_cpu_cost(ci, p);
sys/kern/kern_sched.c
473
if (choice == NULL || cost < last_cost) {
sys/kern/kern_sched.c
475
last_cost = cost;
sys/kern/kern_sched.c
515
int cost;
sys/kern/kern_sched.c
526
cost = sched_proc_to_cpu_cost(self, p);
sys/kern/kern_sched.c
528
if (best == NULL || cost < bestcost) {
sys/kern/kern_sched.c
530
bestcost = cost;
sys/kern/kern_sched.c
582
int cost = 0;
sys/kern/kern_sched.c
595
cost += (p->p_usrpri - spc->spc_curpriority) *
sys/kern/kern_sched.c
597
cost += sched_cost_runnable;
sys/kern/kern_sched.c
600
cost += spc->spc_nrun * sched_cost_runnable;
sys/kern/kern_sched.c
609
cost += sched_cost_runnable;
sys/kern/kern_sched.c
618
cost -= l2resident * sched_cost_resident;
sys/kern/kern_sched.c
621
return (cost);
usr.bin/less/screen.c
486
if (cost(t1) < cost(t2))
usr.bin/ssh/krl.c
479
uint64_t cost, cost_list, cost_range, cost_bitmap, cost_bitmap_restart;
usr.bin/ssh/krl.c
525
cost = cost_bitmap;
usr.bin/ssh/krl.c
526
if (cost_range < cost) {
usr.bin/ssh/krl.c
528
cost = cost_range;
usr.bin/ssh/krl.c
530
if (cost_list < cost) {
usr.bin/ssh/krl.c
532
cost = cost_list;
usr.bin/ssh/krl.c
534
if (cost_bitmap_restart < cost) {
usr.bin/ssh/krl.c
537
cost = cost_bitmap_restart;
usr.sbin/dvmrpctl/dvmrpctl.c
546
rt->cost, rt->uptime == 0 ? "-" :
usr.sbin/dvmrpd/dvmrpd.h
337
u_int32_t cost;
usr.sbin/dvmrpd/rde.h
52
u_int8_t cost;
usr.sbin/dvmrpd/rde_srt.c
179
rn->cost = adj_metric;
usr.sbin/dvmrpd/rde_srt.c
272
rr.metric = r->cost;
usr.sbin/dvmrpd/rde_srt.c
295
rtctl.cost = r->cost;
usr.sbin/dvmrpd/rde_srt.c
384
if (adj_metric > rn->cost) {
usr.sbin/dvmrpd/rde_srt.c
386
rn->cost = adj_metric;
usr.sbin/dvmrpd/rde_srt.c
389
} else if (adj_metric < rn->cost) {
usr.sbin/dvmrpd/rde_srt.c
390
rn->cost = adj_metric;
usr.sbin/dvmrpd/rde_srt.c
420
if (rn->cost < INFINITY_METRIC)
usr.sbin/dvmrpd/rde_srt.c
448
if (metric > rn->cost || (metric == rn->cost &&
usr.sbin/dvmrpd/rde_srt.c
475
(rn->cost < rn->adv_rtr[i].metric ||
usr.sbin/dvmrpd/rde_srt.c
476
(rn->cost == rn->adv_rtr[i].metric &&
usr.sbin/dvmrpd/rde_srt.c
488
rn->adv_rtr[iface->ifindex].metric = rn->cost;
usr.sbin/dvmrpd/rde_srt.c
588
rn->adv_rtr[ifindex].metric = rn->cost;
usr.sbin/dvmrpd/rde_srt.c
607
rr.metric = rn->cost;
usr.sbin/dvmrpd/rde_srt.c
618
rr.metric = rn->cost;
usr.sbin/dvmrpd/rde_srt.c
79
rn->old_cost = rn->cost;
usr.sbin/dvmrpd/rde_srt.c
80
rn->cost = INFINITY_METRIC;
usr.sbin/ospf6ctl/ospf6ctl.c
1116
dst_type_name(rt->d_type), rt->cost,
usr.sbin/ospf6ctl/ospf6ctl.c
1226
path_type_name(rt->p_type), rt->cost);
usr.sbin/ospf6ctl/ospf6ctl.c
1248
rt->cost, rt->cost2);
usr.sbin/ospf6d/ospf6d.h
479
u_int32_t cost;
usr.sbin/ospf6d/rde.c
1273
if (rte->cost >= LS_INFINITY)
usr.sbin/ospf6d/rde.c
1297
v->cost = rte->cost;
usr.sbin/ospf6d/rde.c
1745
lsa->data.sum.metric = htonl(rte->cost & LSA_METRIC_MASK);
usr.sbin/ospf6d/rde.h
105
u_int32_t cost;
usr.sbin/ospf6d/rde.h
48
u_int32_t cost;
usr.sbin/ospf6d/rde_lsdb.c
81
v->cost = LS_INFINITY;
usr.sbin/ospf6d/rde_lsdb.c
944
v->self && v->cost == LS_INFINITY &&
usr.sbin/ospf6d/rde_spf.c
1002
rte->cost = cost;
usr.sbin/ospf6d/rde_spf.c
1028
if (cost < rte->cost)
usr.sbin/ospf6d/rde_spf.c
1030
else if (cost == rte->cost &&
usr.sbin/ospf6d/rde_spf.c
1035
if (cost < rte->cost)
usr.sbin/ospf6d/rde_spf.c
1037
else if (cost == rte->cost)
usr.sbin/ospf6d/rde_spf.c
1044
cost < rte->cost)
usr.sbin/ospf6d/rde_spf.c
1047
cost == rte->cost)
usr.sbin/ospf6d/rde_spf.c
1057
rte->cost = cost;
usr.sbin/ospf6d/rde_spf.c
134
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospf6d/rde_spf.c
136
d = v->cost;
usr.sbin/ospf6d/rde_spf.c
139
if (d > w->cost)
usr.sbin/ospf6d/rde_spf.c
141
if (d < w->cost) {
usr.sbin/ospf6d/rde_spf.c
142
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
154
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospf6d/rde_spf.c
155
w->cost = d;
usr.sbin/ospf6d/rde_spf.c
193
v->type, log_rtr_id(htonl(v->ls_id)), v->cost, hops);
usr.sbin/ospf6d/rde_spf.c
217
if (v->cost >= LS_INFINITY || TAILQ_EMPTY(&v->nexthop))
usr.sbin/ospf6d/rde_spf.c
229
rt_update(&ia6, 128, &v->nexthop, v->type, v->cost, 0, area->id,
usr.sbin/ospf6d/rde_spf.c
267
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
283
v->type, w->cost + ntohs(prefix->metric), 0,
usr.sbin/ospf6d/rde_spf.c
306
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
320
w->cost + (ntohs(v->lsa->data.rtr_sum.metric) &
usr.sbin/ospf6d/rde_spf.c
339
if (w->cost >= LS_INFINITY || TAILQ_EMPTY(&w->nexthop))
usr.sbin/ospf6d/rde_spf.c
348
rt_update(&ia6, 128, &w->nexthop, v->type, w->cost +
usr.sbin/ospf6d/rde_spf.c
412
v->cost = r->cost;
usr.sbin/ospf6d/rde_spf.c
416
v->cost = r->cost + (metric & LSA_METRIC_MASK);
usr.sbin/ospf6d/rde_spf.c
440
v->cost, cost2, area, adv_rtr, type, DT_NET, 0, ext_tag);
usr.sbin/ospf6d/rde_spf.c
454
v->cost = LS_INFINITY;
usr.sbin/ospf6d/rde_spf.c
584
if (c->cost > v->cost) {
usr.sbin/ospf6d/rde_spf.c
587
} else if (c->cost == v->cost && c->type == LSA_TYPE_ROUTER &&
usr.sbin/ospf6d/rde_spf.c
75
spf_root->cost = 0;
usr.sbin/ospf6d/rde_spf.c
959
rtctl.cost = r->cost;
usr.sbin/ospf6d/rde_spf.c
984
u_int16_t v_type, u_int32_t cost, u_int32_t cost2, struct in_addr area,
usr.sbin/ospfctl/output.c
311
path_type_name(rt->p_type), rt->cost);
usr.sbin/ospfctl/output.c
330
path_type_name(rt->p_type), rt->cost, rt->cost2);
usr.sbin/ospfctl/output.c
358
dst_type_name(rt->d_type), rt->cost,
usr.sbin/ospfd/ospfd.h
518
u_int32_t cost;
usr.sbin/ospfd/rde.c
1395
if (rte->cost >= LS_INFINITY)
usr.sbin/ospfd/rde.c
1444
v->cost = rte->cost;
usr.sbin/ospfd/rde.c
1477
lsa->data.sum.metric = htonl(rte->cost & LSA_METRIC_MASK);
usr.sbin/ospfd/rde.h
47
u_int32_t cost;
usr.sbin/ospfd/rde.h
94
u_int32_t cost;
usr.sbin/ospfd/rde_lsdb.c
793
v->self && v->cost == LS_INFINITY &&
usr.sbin/ospfd/rde_lsdb.c
80
v->cost = LS_INFINITY;
usr.sbin/ospfd/rde_lsdb.c
827
rn.cost = r->metric & LSA_METRIC_MASK;
usr.sbin/ospfd/rde_lsdb.c
844
v->cost = rn.cost;
usr.sbin/ospfd/rde_spf.c
133
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospfd/rde_spf.c
135
d = v->cost;
usr.sbin/ospfd/rde_spf.c
138
if (d > w->cost)
usr.sbin/ospfd/rde_spf.c
140
if (d < w->cost) {
usr.sbin/ospfd/rde_spf.c
141
w->cost = d;
usr.sbin/ospfd/rde_spf.c
153
} else if (w->cost == LS_INFINITY && d < LS_INFINITY) {
usr.sbin/ospfd/rde_spf.c
154
w->cost = d;
usr.sbin/ospfd/rde_spf.c
190
if (v->cost >= LS_INFINITY)
usr.sbin/ospfd/rde_spf.c
203
v->cost + ntohs(rtr_link->metric), 0,
usr.sbin/ospfd/rde_spf.c
215
rt_update(addr, 32, &v->nexthop, v->type, v->cost, 0, area->id,
usr.sbin/ospfd/rde_spf.c
219
if (v->cost >= LS_INFINITY)
usr.sbin/ospfd/rde_spf.c
225
&v->nexthop, v->type, v->cost, 0, area->id, adv_rtr,
usr.sbin/ospfd/rde_spf.c
250
v->cost = w->cost +
usr.sbin/ospfd/rde_spf.c
253
if (v->cost >= LS_INFINITY)
usr.sbin/ospfd/rde_spf.c
260
&v->nexthop, v->type, v->cost, 0, area->id, adv_rtr,
usr.sbin/ospfd/rde_spf.c
264
rt_update(addr, 32, &v->nexthop, v->type, v->cost, 0,
usr.sbin/ospfd/rde_spf.c
314
v->cost = r->cost;
usr.sbin/ospfd/rde_spf.c
319
v->cost = r->cost + (ntohl(v->lsa->data.asext.metric) &
usr.sbin/ospfd/rde_spf.c
347
&v->nexthop, v->type, v->cost, cost2, a, adv_rtr, type,
usr.sbin/ospfd/rde_spf.c
365
v->cost = LS_INFINITY;
usr.sbin/ospfd/rde_spf.c
464
if (c->cost > v->cost) {
usr.sbin/ospfd/rde_spf.c
467
} else if (c->cost == v->cost && c->type == LSA_TYPE_ROUTER &&
usr.sbin/ospfd/rde_spf.c
74
spf_root->cost = 0;
usr.sbin/ospfd/rde_spf.c
838
rtctl.cost = r->cost;
usr.sbin/ospfd/rde_spf.c
862
u_int8_t v_type, u_int32_t cost, u_int32_t cost2, struct in_addr area,
usr.sbin/ospfd/rde_spf.c
877
rte->cost = cost;
usr.sbin/ospfd/rde_spf.c
903
if (cost < rte->cost)
usr.sbin/ospfd/rde_spf.c
905
else if (cost == rte->cost &&
usr.sbin/ospfd/rde_spf.c
911
if (cost < rte->cost)
usr.sbin/ospfd/rde_spf.c
913
else if (cost == rte->cost)
usr.sbin/ospfd/rde_spf.c
921
cost < rte->cost)
usr.sbin/ospfd/rde_spf.c
924
cost == rte->cost)
usr.sbin/ospfd/rde_spf.c
934
rte->cost = cost;
usr.sbin/ripd/interface.c
489
ictl.metric = iface->cost;
usr.sbin/ripd/kroute.c
1169
metric = iface->cost;
usr.sbin/ripd/kroute.c
904
kr->r.metric = iface->cost;
usr.sbin/ripd/parse.y
322
defs->cost = $2;
usr.sbin/ripd/parse.y
354
iface->cost = defs->cost;
usr.sbin/ripd/parse.y
779
defs->cost = DEFAULT_COST;
usr.sbin/ripd/parse.y
84
u_int8_t cost;
usr.sbin/ripd/printconf.c
109
printf("\tcost %d\n", iface->cost);
usr.sbin/ripd/rde.c
414
metric = MINIMUM(INFINITY, e->metric + iface->cost);
usr.sbin/ripd/ripd.h
180
u_int16_t cost;
usr.sbin/tcpdump/print-stp.c
158
u_int32_t cost;
usr.sbin/tcpdump/print-stp.c
214
cost = EXTRACT_32BITS(p);
usr.sbin/tcpdump/print-stp.c
215
printf(" rootcost=%u", cost);