/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)) {
|
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...] |
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...] |
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...] |
/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...] |
/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...] |
/src/games/tetris/ |
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...] |
/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...] |
isp_library.c | 342 int amt, i, j; local in function:isp_print_qentry 346 for (buf[0] = 0, amt = i = 0; i < 4; i++) { 350 ISP_SNPRINTF(buf, TBA, "%s %02x", buf, ptr[amt++] & 0xff); 357 isp_print_bytes(ispsoftc_t *isp, const char *msg, int amt, void *arg) 367 while (off < amt) { 372 if (off == amt) {
|
isp.c | 1969 size_t amt = 0; local in function:isp_fibre_init_2400 1978 amt = ICB2400_VPINFO_OFF + sizeof (isp_icb_2400_vpinfo_t); 1999 amt += ICB2400_VPOPT_WRITE_SIZE; 7704 int i, amt, retval; local in function:isp_read_nvram 7716 amt = ISP2100_NVRAM_SIZE; 7719 amt = ISP1080_NVRAM_SIZE; 7722 amt = ISP_NVRAM_SIZE; 7726 for (i = 0; i < amt>>1; i++) { 7740 for (csum = 0, i = 0; i < amt; i++) {
|
/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...] |
/src/sys/dev/scsipi/ |
ses.c | 128 #define SES_MALLOC(amt) malloc(amt, M_DEVBUF, M_NOWAIT) 129 #define SES_FREE(ptr, amt) free(ptr, M_DEVBUF) 130 #define MEMZERO(dest, amt) memset(dest, 0, amt) 131 #define MEMCPY(dest, src, amt) memcpy(dest, src, amt) 934 int err, amt, i, nobj, ntype, maxima; local in function:ses_getconfig 949 amt = SCSZ; 950 err = ses_runcmd(ssc, cdb, 6, sdata, &amt); 1079 int err, amt, bufsiz, tidx, oidx; local in function:ses_getputstat 1580 int err, amt; local in function:safte_init_enc 1801 int err, amt; local in function:safte_getconfig 1842 int err, oid, r, i, hiwater, nitems, amt; local in function:safte_rdstat 2313 int err, amt; local in function:wrbuf16 2347 int i, amt; local in function:wrslot_stat 2389 int err, amt; local in function:perf_slotop [all...] |
/src/common/lib/libx86emu/ |
x86emu.c | 3040 uint8_t destval, amt; local in function:x86emuOp_opcC0_byte_RM_MEM 3049 destval = decode_and_fetch_byte_imm8(emu, &amt); 3050 destval = (*opcD0_byte_operation[emu->cur_rh]) (emu, destval, amt); 3086 uint8_t amt; local in function:x86emuOp_opcC1_word_RM_MEM 3097 destval = decode_and_fetch_long_imm8(emu, &amt); 3098 destval = (*opcD1_long_operation[emu->cur_rh]) (emu, destval, amt); 3103 destval = decode_and_fetch_word_imm8(emu, &amt); 3104 destval = (*opcD1_word_operation[emu->cur_rh]) (emu, destval, amt);
|