/src/games/larn/ |
action.c | 167 long amt; local in function:act_donation_pray 175 amt = readnum((long) c[GOLD]); 176 if (amt < 0 || c[GOLD] < amt) { 180 c[GOLD] -= amt; 181 if (amt < c[GOLD] / 10 || amt < rnd(50)) {
|
action.c | 167 long amt; local in function:act_donation_pray 175 amt = readnum((long) c[GOLD]); 176 if (amt < 0 || c[GOLD] < amt) { 180 c[GOLD] -= amt; 181 if (amt < c[GOLD] / 10 || amt < rnd(50)) {
|
store.c | 583 long amt; local in function:obanksub 632 amt = readnum((long) c[GOLD]); 633 if (amt < 0) { 636 amt = 0; 637 } else if (amt > c[GOLD]) { 641 c[GOLD] -= amt; 642 c[BANKACCOUNT] += amt; 648 amt = readnum((long) c[BANKACCOUNT]); 649 if (amt < 0) { 652 amt = 0 858 long amt; local in function:olrs [all...] |
store.c | 583 long amt; local in function:obanksub 632 amt = readnum((long) c[GOLD]); 633 if (amt < 0) { 636 amt = 0; 637 } else if (amt > c[GOLD]) { 641 c[GOLD] -= amt; 642 c[BANKACCOUNT] += amt; 648 amt = readnum((long) c[BANKACCOUNT]); 649 if (amt < 0) { 652 amt = 0 858 long amt; local in function:olrs [all...] |
main.c | 1123 long amt; local in function:dropobj 1139 if ((amt = readnum((long) c[GOLD])) == 0) 1141 if (amt > c[GOLD]) { 1145 if (amt <= 32767) { 1147 i = amt; 1148 } else if (amt <= 327670L) { 1150 i = amt / 10; 1151 amt = 10 * i; 1152 } else if (amt <= 3276700L) { 1154 i = amt / 100 1307 unsigned long amt = 0; local in function:readnum [all...] |
main.c | 1123 long amt; local in function:dropobj 1139 if ((amt = readnum((long) c[GOLD])) == 0) 1141 if (amt > c[GOLD]) { 1145 if (amt <= 32767) { 1147 i = amt; 1148 } else if (amt <= 327670L) { 1150 i = amt / 10; 1151 amt = 10 * i; 1152 } else if (amt <= 3276700L) { 1154 i = amt / 100 1307 unsigned long amt = 0; local in function:readnum [all...] |
scores.c | 229 long amt; local in function:paytaxes 239 amt = winr[i].taxes; 240 if (x < amt) 241 amt = x; /* don't overpay taxes 243 winr[i].taxes -= amt; 244 outstanding_taxes -= amt; 248 return (amt);
|
scores.c | 229 long amt; local in function:paytaxes 239 amt = winr[i].taxes; 240 if (x < amt) 241 amt = x; /* don't overpay taxes 243 winr[i].taxes -= amt; 244 outstanding_taxes -= amt; 248 return (amt);
|
/src/usr.sbin/lpr/lpd/ |
recvjob.c | 216 int i, j, amt; local in function:readfile 225 amt = BUFSIZ; 227 if (i + amt > size) 228 amt = size - i; 230 j = read(STDOUT_FILENO, cp, amt); 233 amt -= j; 235 } while (amt > 0); 236 amt = BUFSIZ; 237 if (i + amt > size) 238 amt = size - i [all...] |
recvjob.c | 216 int i, j, amt; local in function:readfile 225 amt = BUFSIZ; 227 if (i + amt > size) 228 amt = size - i; 230 j = read(STDOUT_FILENO, cp, amt); 233 amt -= j; 235 } while (amt > 0); 236 amt = BUFSIZ; 237 if (i + amt > size) 238 amt = size - i [all...] |
printjob.c | 887 int f, i, amt; local in function:sendfile 928 amt = snprintf(buf, sizeof(buf), "%c%lld %s\n", type, 931 if (write(pfd, buf, amt) != amt || 950 amt = BUFSIZ; 951 if (i + amt > stb.st_size) 952 amt = stb.st_size - i; 953 if (sizerr == 0 && read(f, buf, amt) != amt) 961 if (write(pfd, buf, amt) != amt) [all...] |
/src/libexec/ld.elf_so/ |
xmalloc.c | 181 unsigned amt; local in function:imalloc 201 amt = sizeof(union overhead); 202 while (pagesz > amt) { 203 amt <<= 1; 216 amt = sizeof(union overhead) * 2; 219 amt = sizeof(union overhead); /* size of first bucket */ 224 amt = pagesz; 227 while (nbytes > amt + n) { 228 amt <<= 1; 229 if (amt == 0 269 size_t amt; \/* amount to allocate *\/ local in function:morecore [all...] |
xmalloc.c | 181 unsigned amt; local in function:imalloc 201 amt = sizeof(union overhead); 202 while (pagesz > amt) { 203 amt <<= 1; 216 amt = sizeof(union overhead) * 2; 219 amt = sizeof(union overhead); /* size of first bucket */ 224 amt = pagesz; 227 while (nbytes > amt + n) { 228 amt <<= 1; 229 if (amt == 0 269 size_t amt; \/* amount to allocate *\/ local in function:morecore [all...] |
/src/lib/libbsdmalloc/ |
malloc.c | 183 unsigned amt; local in function:malloc 205 amt = 8; 206 while (pagesz > amt) { 207 amt <<= 1; 219 amt = 8; /* size of first bucket */ 222 amt = 16; /* size of first bucket */ 227 amt = (unsigned)pagesz; 230 while (nbytes > amt + n) { 231 amt <<= 1; 232 if (amt == 0 275 long amt; \/* amount to allocate *\/ local in function:morecore [all...] |
malloc.c | 183 unsigned amt; local in function:malloc 205 amt = 8; 206 while (pagesz > amt) { 207 amt <<= 1; 219 amt = 8; /* size of first bucket */ 222 amt = 16; /* size of first bucket */ 227 amt = (unsigned)pagesz; 230 while (nbytes > amt + n) { 231 amt <<= 1; 232 if (amt == 0 275 long amt; \/* amount to allocate *\/ local in function:morecore [all...] |
/src/games/adventure/ |
save.c | 236 size_t pos, amt, i; local in function:savefile_binread 241 amt = len - pos; 242 if (amt > sizeof(buf) / 2) { 243 amt = sizeof(buf) / 2; 245 if (savefile_bintextread(sf, buf, amt*2)) { 248 for (i=0; i<amt; i++) { 268 size_t pos, amt; local in function:savefile_bintextwrite 274 amt = BINTEXT_WIDTH - sf->bintextpos; 275 if (amt > len - pos) { 276 amt = len - pos 396 size_t pos, amt, i; local in function:savefile_cread 428 size_t pos, amt, i; local in function:savefile_cwrite [all...] |
save.c | 236 size_t pos, amt, i; local in function:savefile_binread 241 amt = len - pos; 242 if (amt > sizeof(buf) / 2) { 243 amt = sizeof(buf) / 2; 245 if (savefile_bintextread(sf, buf, amt*2)) { 248 for (i=0; i<amt; i++) { 268 size_t pos, amt; local in function:savefile_bintextwrite 274 amt = BINTEXT_WIDTH - sf->bintextpos; 275 if (amt > len - pos) { 276 amt = len - pos 396 size_t pos, amt, i; local in function:savefile_cread 428 size_t pos, amt, i; local in function:savefile_cwrite [all...] |
/src/games/tetris/ |
scores.c | 256 size_t amt; local in function:readname 258 amt = maxto < maxfrom ? maxto : maxfrom; 259 memcpy(to, from, amt);
|
scores.c | 256 size_t amt; local in function:readname 258 amt = maxto < maxfrom ? maxto : maxfrom; 259 memcpy(to, from, amt);
|
/src/usr.bin/rdist/ |
server.c | 529 int amt = BUFSIZ; local in function:sendf 530 if (i + amt > stb.st_size) 531 amt = stb.st_size - i; 532 if (sizerr == 0 && read(f, buf, amt) != amt) 534 if (write(rem, buf, amt) < 0) 908 int amt = BUFSIZ; local in function:recvf 911 if (i + amt > size) 912 amt = size - i; 914 int j = read(rem, cp, amt); [all...] |
server.c | 529 int amt = BUFSIZ; local in function:sendf 530 if (i + amt > stb.st_size) 531 amt = stb.st_size - i; 532 if (sizerr == 0 && read(f, buf, amt) != amt) 534 if (write(rem, buf, amt) < 0) 908 int amt = BUFSIZ; local in function:recvf 911 if (i + amt > size) 912 amt = size - i; 914 int j = read(rem, cp, amt); [all...] |
/src/sys/dev/ic/ |
mpt.c | 626 size_t amt; local in function:mpt_read_cfg_page 636 amt = (cfgp->Header.PageLength * sizeof (u_int32_t)); 641 MPI_pSGE_SET_LENGTH(se, amt); 675 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_0); 678 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_1); 681 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_2); 684 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_0); 687 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_1); 689 memcpy(hdr, (char *)req->req_vbuf + CFG_DATA_OFF, amt); 701 size_t amt; local in function:mpt_write_cfg_page [all...] |
mpt.c | 626 size_t amt; local in function:mpt_read_cfg_page 636 amt = (cfgp->Header.PageLength * sizeof (u_int32_t)); 641 MPI_pSGE_SET_LENGTH(se, amt); 675 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_0); 678 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_1); 681 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_2); 684 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_0); 687 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_1); 689 memcpy(hdr, (char *)req->req_vbuf + CFG_DATA_OFF, amt); 701 size_t amt; local in function:mpt_write_cfg_page [all...] |
/src/bin/rcp/ |
rcp.c | 337 off_t amt; local in function:source 398 amt = bp->cnt; 399 if (i + amt > stb.st_size) 400 amt = stb.st_size - i; 401 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 409 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 492 off_t amt; local in function:sink 676 amt = bp->cnt; 677 if (i + amt > size) 678 amt = size - i [all...] |
rcp.c | 337 off_t amt; local in function:source 398 amt = bp->cnt; 399 if (i + amt > stb.st_size) 400 amt = stb.st_size - i; 401 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 409 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 492 off_t amt; local in function:sink 676 amt = bp->cnt; 677 if (i + amt > size) 678 amt = size - i [all...] |