Lines Matching defs:counter
131 * bf.counter values in range [-1 .. SEGSIZE] represents size of data in the
136 int counter; /* size of data in buffer, or flag */
321 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
323 bfs[1].counter = BF_FREE;
346 bfs[current].counter = BF_FREE; /* free old one */
350 if(b->counter == BF_FREE) /* if it's empty */
354 return b->counter;
371 if(b->counter != BF_FREE) /* nop if not free */
379 b->counter = read(fileno(file), dp->th_data, SEGSIZE); */
386 b->counter = (int)copy_n;
415 b->counter = (int)(p - dp->th_data);
424 bfs[current].counter = ct; /* set size of data to write */
426 if(bfs[current].counter != BF_FREE) /* if not free */
428 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
450 if(b->counter < -1) /* anything to flush? */
467 count = b->counter; /* remember byte count */
468 b->counter = BF_FREE; /* reset flag */