Lines Matching refs:cnt
454 int64_t cnt, n, nw; in dd_out() local
475 for (cnt = n;; cnt -= nw) { in dd_out()
480 for (i = 0; i < cnt; i++) in dd_out()
486 pending += cnt; in dd_out()
487 outp += cnt; in dd_out()
502 nw = bwrite(out.fd, outp, cnt); in dd_out()
534 if (nw == cnt) in dd_out()
589 int bcnt, cnt, nr, warned; in pos_in() local
609 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in()
614 --cnt; in pos_in()
617 --cnt; in pos_in()
656 int cnt, n; in pos_out() local
687 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
711 while (cnt++ < out.offset) in pos_out()
732 uint64_t cnt; in def() local
737 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
792 uint64_t cnt, maxlen; in block() local
803 for (inp = in.db, cnt = in.dbrcnt; in block()
804 cnt && *inp++ != '\n'; --cnt); in block()
805 if (!cnt) { in block()
812 in.dbcnt = cnt - 1; in block()
813 in.dbp = inp + cnt - 1; in block()
823 for (cnt = 0; in block()
824 cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) in block()
827 for (cnt = 0; in block()
828 cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) in block()
840 in.dbcnt -= cnt; in block()
845 if (cnt < cbsz) in block()
846 (void)memset(outp, ctab ? ctab[' '] : ' ', cbsz - cnt); in block()
903 uint64_t cnt; in unblock() local
909 for (cnt = in.dbrcnt, inp = in.dbp - 1; cnt--; inp--) in unblock()
919 cnt = t - inp + 1; in unblock()
920 (void)memmove(out.dbp, inp, cnt); in unblock()
921 out.dbp += cnt; in unblock()
922 out.dbcnt += cnt; in unblock()
937 uint64_t cnt; in unblock_close() local
944 cnt = t - in.db + 1; in unblock_close()
945 (void)memmove(out.dbp, in.db, cnt); in unblock_close()
946 out.dbp += cnt; in unblock_close()
947 out.dbcnt += cnt; in unblock_close()