Lines Matching refs:counter
82 int counter; /* size of data in buffer, or flag */
87 /* Values for bf.counter */
113 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
115 bfs[1].counter = BF_FREE;
130 bfs[current].counter = BF_FREE; /* free old one */
134 if (b->counter == BF_FREE) /* if it's empty */
137 return (b->counter);
154 if (b->counter != BF_FREE) /* nop if not free */
161 b->counter = fread(dp->th_data, sizeof (char), blocksize,
164 b->counter = -1;
186 b->counter = (int)(p - dp->th_data);
197 bfs[current].counter = ct; /* set size of data to write */
199 if (bfs[current].counter != BF_FREE) /* if not free */
202 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
225 if (b->counter < -1) /* anything to flush? */
228 count = b->counter; /* remember byte count */
229 b->counter = BF_FREE; /* reset flag */