/ast/src/cmd/pack/ |
H A D | huffinit.c | 36 long int count; member in struct:__anon177 40 static long count[END+1]; variable 59 count[i] = 0; 71 count[inbuff[--n]]++; 79 count[i] += count[i]; 80 count[END] = 1; 85 if (count[i] > 0) 87 heap[++n].count = count[ [all...] |
/ast/src/cmd/tests/sfio/ |
H A D | twalk.c | 36 int c, count = 0; local 38 if((c = sfwalk(walkf, &count, 0)) != 3) /* counting sfstdin/out/err */ 39 terror("Bad count c=%d", c); 44 if((c = sfwalk(walkf, &count, 0)) != 7) /* recount std-streams and 1 more */ 45 terror("Bad count c=%d", c);
|
H A D | tmwrite.c | 38 int count[N_WRITER]; local 60 count[i] = 0; 65 if(count[i] < N_RECORD) 66 { r = size[i][count[i]]; 73 if((count[i] += 1) == N_RECORD) 81 count[i] = 0; 89 terror("Bad record%d, count=%d", i, count[i]); 91 if(sfvalue(fr) != size[i][count[i]]) 92 terror("Record%d count [all...] |
H A D | tmprocess.c | 72 int count[N_PROC]; local 142 count[i] = 0; 153 terror("%d: process%d, number=%d", n, i, count[i]); 156 terror("%d: process%d, count=%d", n, i, count[i]); 158 if(sfvalue(f) != size[i][count[i]]) 160 n, i, count[i], size[i][count[i]], sfvalue(f)); 162 count[i] += 1; 166 if(count[ [all...] |
H A D | tmtsafe.c | 111 int count[26]; local 140 { count[i] = 0; 167 count[i] += 1; 171 { if(count[i] != N_STR) 173 tsuccess("Bad count as expected"); 174 else terror("Bad count[%d] = %d", i, count[i]); 194 { count[i] = 0; 220 count[i] += 1; 234 count[ [all...] |
H A D | tnoseek.c | 24 size_t count; variable 51 count += 1; 75 if(buffer != buf || size != 8 || count != 1)
|
/ast/src/lib/libast/stdio/ |
H A D | fcloseall.c | 35 int count; local 41 { nclose = count = 0; 48 { count += 1; 53 if(nclose == count)
|
/ast/src/cmd/tests/cdt/ |
H A D | trhbags.c | 52 long i, k, count, n; local 71 if((count = dtsize(dt)) != i+1) 72 terror("Bad size %d (need %d)", count, i+1); 75 count = n = 0; /* count the group of elements with key == 0 */ 76 for(o = (Obj_t*)dtflatten(dt); o; o = (Obj_t*)dtlink(dt,o), count += 1) 79 if(count != N_OBJ || n != R_OBJ) 80 terror("flatten %s: count=%d(need=%d) n=%d(need=%d)", 81 k == 0 ? "bag" : "obag", count, N_OBJ, n, R_OBJ); 89 count [all...] |
H A D | tsearch.c | 38 long i, k, count[1000]; local 159 count[i] = 0; 161 count[i] += 1; 162 if(count[1] != 2) 163 terror("Dtlist count 1"); 164 if(count[2] != 2) 165 terror("Dtlist count 2"); 166 if(count[3] != 3) 167 terror("Dtlist count 3"); 192 count[ [all...] |
/ast/src/cmd/pzip/ |
H A D | rectify.c | 45 " [+r size count [label]]?\acount\a records of length \asize\a]" 46 " [+t count?Match \acount\a records against the \bT\b record" 67 "[n:count?List the top \acount\a candidate record lengths.]#[count:=16]" 87 unsigned long count; member in struct:Item_s 103 unsigned long count; member in struct:__anon197 115 unsigned long count; member in struct:__anon198 125 * order items by count hi to lo 134 if (a->count < b->count) 260 long count; local [all...] |
/ast/src/lib/libtksh/tcl/ |
H A D | tclHash.c | 308 int count[NUM_COUNTERS], overflow, i, j; 318 count[i] = 0; 328 count[j]++; 346 i, count[i]); 678 int index, count; 680 for (index = 0, count = tablePtr->keyType, iPtr1 = arrayPtr; 681 count > 0; count--, iPtr1++) { 693 count = tablePtr->keyType; ; count 302 int count[NUM_COUNTERS], overflow, i, j; local 666 int index, count; local 725 int index, count; local 863 int oldSize, count, index; local 900 int count; local [all...] |
/ast/src/lib/libuu/ |
H A D | uulib.h | 36 size_t count;
|
/ast/src/cmd/ksh93/tests/ |
H A D | cubetype.sh | 36 integer -S count=0 44 (( _.count++)) 65 exp=2 got=$(( b.count )) 66 (( got == exp )) || err_exit "b.count incorrect for iteration $i -- expected $exp, got '$got'" 67 exp=2 got=${b.count} 95 b.count=0 109 (( _.count++)) 124 (( b.count == 1 )) || err_exit "b.count incorrect -- expected 1, got '$(( b.count ))'" [all...] |
/ast/src/lib/libpz/ |
H A D | pzopen.c | 272 if ((pz->flags & PZ_WRITE) && (pz->flags & (PZ_DUMP|PZ_VERBOSE|PZ_SUMMARY)) && pz->disc->errorf && pz->count.records) 274 if (!pz->count.uncompressed) 275 pz->count.uncompressed = pz->part->row * pz->count.records; 276 if (!pz->count.compressed) 278 pz->count.compressed = pz->count.uncompressed; 284 pz->count.compressed = p; 297 , (double)((Sflong_t)pz->count.uncompressed) / (double)((Sflong_t)pz->count [all...] |
H A D | pzhead.c | 67 if (!(pz->flags & (PZ_READ|PZ_WRITE|PZ_STAT)) && (m = pz->prefix.count)) 76 (*pz->disc->errorf)(pz, pz->disc, 2, "%s: cannot read %I*u prefix record%s from data", pz->path, sizeof(pz->prefix.count), pz->prefix.count, pz->prefix.count == 1 ? "" : "s"); 84 (*pz->disc->errorf)(pz, pz->disc, 2, "%s: cannot read %I*u prefix byte%s from data", pz->path, sizeof(pz->prefix.count), pz->prefix.count, pz->prefix.count == 1 ? "" : "s"); 189 if (i = pz->prefix.count) 200 (*pz->disc->errorf)(pz, pz->disc, 2, "%s: cannot read %I*u prefix record%s from data", pz->path, sizeof(pz->prefix.count), pz->prefix.count, p [all...] |
/ast/src/lib/libtk/generic/ |
H A D | tkImgGIF.c | 374 int count = 0; 385 count = GetDataBlock(fd, (unsigned char*) buf); 386 } while (count > 0); 387 return count; 390 count = GetDataBlock(fd, (unsigned char*) buf); 391 if (count < 0) { 399 count = GetDataBlock(fd, (unsigned char*) buf); 400 } while (count > 0); 401 return count; 405 count 371 int count = 0; local 414 unsigned char count; local 591 int count; local 657 unsigned char count; local [all...] |
H A D | tkClipboard.c | 44 * The return value is a count of the number of bytes 64 int count = 0; 97 count += length; 107 return count; 124 * The return value is a count of the number of bytes 441 int count; 457 for (count = argc-2, args = argv+2; count > 1; count -= 2, args += 2) { 465 count 63 int count = 0; local 434 int count; local [all...] |
H A D | tkSelect.c | 104 * in buffer as a string, and return a count of the number 508 int offset, result, count; 522 count = TkSelDefaultSelection(infoPtr, target, buffer, 524 if (count > TK_SEL_BYTES_AT_ONCE) { 527 if (count < 0) { 530 buffer[count] = 0; 539 count = (selPtr->proc)(selPtr->clientData, offset, buffer, 541 if ((count < 0) || (ip.selPtr == NULL)) { 545 if (count > TK_SEL_BYTES_AT_ONCE) { 548 buffer[count] 503 int offset, result, count; local 600 int c, count; local [all...] |
/ast/src/lib/libcmd/ |
H A D | uniq.c | 40 "[c:count?Output the number of times each line occurred along with " 90 int reclen,oreclen= -1,count=0,cwidth=0,sep,next; local 151 count++; 154 next = count; 161 if(((mode&D_FLAG)&&count==0) || ((mode&U_FLAG)&&count)) 170 if(count<9) 175 outp[f++] = '0' + count + 1; 178 else if(count<MAXCNT) 180 count [all...] |
H A D | cmp.c | 63 "[n:count|bytes?Compare at most \acount\a bytes.]#[count]" 145 cmp(const char* file1, Sfio_t* f1, const char* file2, Sfio_t* f2, int flags, Sfoff_t count, Sfoff_t differences) argument 163 if (count > 0 && !(count -= n1)) 175 if (count > 0 && c1 > count) 176 c1 = (int)count; 262 Sfoff_t count = -1; local 298 count [all...] |
/ast/src/cmd/std/ |
H A D | pss-pstat.c | 73 int count; 77 if ((count = pstat_getproc(state->pst, sizeof(state->pst[0]), 0, pid)) != 1) 80 state->pe = state->pp + count; 85 count = state->pe ? (state->pe-1)->pst_idx + 1 : 0; 86 if ((count = pstat_getproc(state->pst, sizeof(state->pst[0]), elementsof(state->pst), count)) < 0) 88 if (!count) 91 state->pe = state->pp + count;
|
H A D | pss-getprocs.c | 63 int count; 90 if ((state->count = getprocs(state->entry, sizeof(state->entry[0]), NiL, 0, &pss->pid, 1)) != 1) 95 while (state->index >= state->count) 100 state->count = getprocs(state->entry, sizeof(state->entry[0]), NiL, 0, &pss->pid, elementsof(state->entry)); 101 if (state->count < elementsof(state->entry)) 104 if (state->count < 0) 106 if (!state->count)
|
/ast/src/cmd/dsslib/netflow/ |
H A D | flow-dumpv9.c | 92 sfprintf(sfstderr, "count %d\n", pp->count); 93 pp->count--; 101 sfprintf(sfstderr, "count %d\n", pp->count); 102 while (!pp->count--) 113 pp->count = rp->count = BE2(pp->data); 115 sfprintf(sfstderr, "header version %d size %d flowsets %d offset %I*d\n", rp->version, 20, pp->count, sizeof(file->offset), file->offset); 123 sfprintf(sfstderr, "record %d flowset %d\n", file->count, r [all...] |
/ast/src/cmd/pax/ |
H A D | bio.c | 222 error(ERROR_SYSTEM|3, "%s: blokwrite count write error (%d!=%d)", ap->name, i, j); 243 static int count = 1; 245 if (!count) 251 count--; 265 s = sfprints("<%p,%d,%d,%I*d,%d,%d>", io->buffer, io->unread, io->fill, sizeof(io->count), io->count, io->next - (io->buffer + io->unread), io->last - (io->buffer + io->unread)); 510 ap->io->count += (r = m - r); 522 message((-7, "bread(%s,%I*d@%I*d) %s: %s", ap->name, sizeof(r), r, sizeof(ap->io->count), ap->io->count, bstatus(ap->io), show(b, r))); 524 message((-7, "bread(%s) skip(%I*d@%I*d) %s", ap->name, sizeof(r), r, sizeof(ap->io->count), a [all...] |
/ast/src/cmd/ie/ |
H A D | emacs.c | 186 register int count; local 298 oadjust = count = adjust; 299 if(count<0) 300 count = 1; 312 xcommands(count); 365 if (count > i) 366 count = i; 368 kptr = &kstack[count]; /* move old contents here */ 378 i -= count; 379 eol -= count; [all...] |