/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 | tnoseek.c | 24 size_t count; variable 51 count += 1; 75 if(buffer != buf || size != 8 || count != 1)
|
H A D | ttmp.c | 28 void count(Sfio_t* f, int type, void* data) function 30 void count(f, type, data) 111 sfnotify(count); 115 terror("wrong count 1, count=%d", Count); 118 terror("wrong count 2 count=%d", Count); 123 terror("wrong count 2.2 count=%d", Count); 126 terror("wrong 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 | 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...] |
/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 | tobag.c | 38 long x, g, i, k, count[10]; local 106 count[i] = 0; 108 count[i] += 1; 110 if(count[i] != i) 111 terror("dtnext count failed -- expected %d, got %ld", i, count[i]); 113 count[i] = 0; 115 count[i] += 1; 117 if(count[i] != i) 118 terror("dtprev count faile [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...] |
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...] |
/ast/src/lib/libast/sfio/ |
H A D | sfsync.c | 39 reg int nsync, count, loop; local 43 { rv = nsync = count = 0; 52 { count += 1; 76 if(nsync == count)
|
/ast/src/lib/libardir/ |
H A D | ar-local.c | 35 unsigned long count; /* member count */ member in struct:State_s 108 if (state->count++ || !strmatch(t, SYMDIR_local))
|
/ast/src/lib/libtk/generic/ |
H A D | tkMain.c | 271 int code, count; 274 count = Tcl_Gets(chan, &line); 276 if (count < 0) { 285 count = 0; 269 int code, count; local
|
H A D | tkFileFilter.c | 117 int count; 120 if (Tcl_SplitList(interp, listArgv[i], &count, &typeInfo) != TCL_OK) { 125 if (count != 2 && count != 3) { 135 if (count == 2) { 115 int count; local
|
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 | tkImgPPM.c | 137 int nLines, nBytes, h, type, count; 210 count = fread(pixelPtr, 1, (unsigned) nBytes, f); 211 if (count != nBytes) { 222 for (p = pixelPtr; count > 0; count--, p++) { 135 int nLines, nBytes, h, type, count; local
|
H A D | tkTextIndex.c | 381 * "op count units" where op is + or -, count is a number, and units 513 * about modifier (count and units). local 520 int count, lineIndex; 524 * Get the count (how many units forward or backward). 531 count = strtol(p, &end, 0); 553 TkTextIndexForwChars(indexPtr, count, indexPtr); 555 TkTextIndexBackChars(indexPtr, count, indexPtr); 560 lineIndex += count; 562 lineIndex -= count; [all...] |
/ast/src/cmd/mailx/port/ |
H A D | dtstat.c | 97 static void dthstat(reg Dtdata_t* data, Dtstat_t* ds, reg int* count) argument 99 static void dthstat(data, ds, count) 102 reg int* count; 112 if(count) 113 count[n] += 1;
|
/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/pax/ |
H A D | nocomment.c | 135 off_t count; local 141 count = sftell(op); 426 count = count < 0 ? 0 : (sferror(ip) || sferror(op)) ? -1 : (sftell(op) - count); 428 return count;
|
/ast/src/cmd/sort/ |
H A D | rec.c | 38 "[c:count?COunt the number of records.]" 74 int count = 0; local 85 count = !!opt_info.num; 142 if (sp && (count || length)) 210 if (count)
|
/ast/src/cmd/ksh93/tests/ |
H A D | types.sh | 491 function count function
|
/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...] |
/ast/src/lib/libcs/ |
H A D | cslib.h | 132 long count; member in struct:csfdhdr
|
/ast/src/lib/libjcl/ |
H A D | uniq.c | 34 unsigned long count; member in struct:Uniq_s 225 u->count++; 236 u->count = 1; 269 u->count++; 280 u->count = 1; 299 * list uniq name [value] with optional count 320 sfprintf(sp, " %lu", u->count);
|