Searched defs:count (Results 1 - 25 of 124) sorted by relevance

12345

/ast/src/cmd/tests/sfio/
H A Dtwalk.c36 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 Dtmwrite.c38 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 Dtnoseek.c24 size_t count; variable
51 count += 1;
75 if(buffer != buf || size != 8 || count != 1)
H A Dttmp.c28 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 Dtmtsafe.c111 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 Dtmprocess.c72 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 Dfcloseall.c35 int count; local
41 { nclose = count = 0;
48 { count += 1;
53 if(nclose == count)
/ast/src/cmd/tests/cdt/
H A Dtobag.c38 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 Dtsearch.c38 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 Dtrhbags.c52 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 Dsfsync.c39 reg int nsync, count, loop; local
43 { rv = nsync = count = 0;
52 { count += 1;
76 if(nsync == count)
/ast/src/lib/libardir/
H A Dar-local.c35 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 DtkMain.c271 int code, count;
274 count = Tcl_Gets(chan, &line);
276 if (count < 0) {
285 count = 0;
269 int code, count; local
H A DtkFileFilter.c117 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 DtkClipboard.c44 * 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 DtkImgPPM.c137 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 DtkTextIndex.c381 * "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 Ddtstat.c97 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 Dhuffinit.c36 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 Dnocomment.c135 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 Drec.c38 "[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 Dtypes.sh491 function count function
/ast/src/lib/libcmd/
H A Duniq.c40 "[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 Dcslib.h132 long count; member in struct:csfdhdr
/ast/src/lib/libjcl/
H A Duniq.c34 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);

Completed in 63 milliseconds

12345