Home
last modified time | relevance | path

Searched refs:lcnt (Results 1 – 13 of 13) sorted by relevance

/mirbsd/src/usr.bin/vi/vi/
Dvs_refresh.c168 recno_t lastline, lcnt; local
248 lcnt = vs_sm_nlines(sp, HMAP, LNO, sp->t_maxrows);
249 if (lcnt <= HALFSCREEN(sp))
250 for (; lcnt && sp->t_rows != sp->t_maxrows;
251 --lcnt, ++sp->t_rows) {
259 lcnt = vs_sm_nlines(sp, TMAP, LNO, sp->t_maxrows);
260 if (lcnt <= HALFSCREEN(sp))
261 for (; lcnt && sp->t_rows != sp->t_maxrows;
262 --lcnt, ++sp->t_rows) {
301 lcnt = vs_sm_nlines(sp, TMAP, LNO, HALFTEXT(sp));
[all …]
Dv_ulcase.c53 size_t cno, lcnt, len; local
79 lcnt = len - 1;
84 lcnt = cno + cnt - 1;
87 vp->m_final.cno = lcnt + 1;
90 if (ulcase(sp, lno, p, len, cno, lcnt))
Dvs_smap.c1054 size_t lcnt; local
1061 lcnt = vs_screens(sp, p->lno, NULL);
1062 if (lcnt == p->soff) {
1238 recno_t lno, lcnt; local
1248 lcnt = from_sp->soff - 1; /* Correct for off-by-one. */
1249 for (lno = from_sp->lno; --lno >= to_lno && lcnt <= max;)
1250 lcnt += vs_screens(sp, lno, NULL);
1253 lcnt = (vs_screens(sp, lno, NULL) - from_sp->soff) + 1;
1254 for (; ++lno < to_lno && lcnt <= max;)
1255 lcnt += vs_screens(sp, lno, NULL);
[all …]
/mirbsd/src/usr.bin/man/
Dconfig.c73 int lcnt; in config() local
81 for (lcnt = 1; (p = fgetln(cfp, &len)) != NULL; ++lcnt) { in config()
85 warnx("%s: line %d corrupted", fname, lcnt); in config()
Dman.c621 int lcnt, print; in how() local
633 for (lcnt = print = 0; fgets(buf, sizeof(buf), fp);) { in how()
644 ++lcnt; in how()
646 while (lcnt) { in how()
647 --lcnt; in how()
/mirbsd/src/usr.bin/vi/ex/
Dex_read.c307 recno_t lcnt, lno; local
321 lcnt = 0;
323 for (lno = fm->lno; !ex_getline(sp, fp, &len); ++lno, ++lcnt) {
324 if ((lcnt + 1) % INTERRUPT_CHECK == 0) {
343 *nlinesp = lcnt;
348 "148|%s: %lu lines, %lu characters", p, lcnt, ccnt);
Dex_write.c289 recno_t fline, tline, lcnt; local
319 lcnt = 0;
322 for (; fline <= tline; ++fline, ++lcnt) {
324 if ((lcnt + 1) % INTERRUPT_CHECK == 0) {
374 *nlno = lcnt;
/mirbsd/src/usr.bin/split/
Dsplit.c222 long lcnt = 0; in split2() local
245 } else if (lcnt++ == numlines) { in split2()
247 lcnt = 1; in split2()
/mirbsd/src/sbin/fsdb/
Dfsdb.c742 int lcnt; in CMDFUNCSTART() local
748 lcnt = strtol(argv[1], &cp, 0); in CMDFUNCSTART()
753 if (lcnt > USHRT_MAX || lcnt < 0) { in CMDFUNCSTART()
758 curinode->di_nlink = lcnt; in CMDFUNCSTART()
/mirbsd/src/sbin/fsck_ffs/
Ddir.c290 adjust(struct inodesc *idesc, short lcnt) in adjust() argument
295 if (dp->di_nlink == lcnt) { in adjust()
303 dp->di_nlink, dp->di_nlink - lcnt); in adjust()
305 if (lcnt < 0) { in adjust()
313 dp->di_nlink -= lcnt; in adjust()
/mirbsd/src/sbin/fsck_ext2fs/
Ddir.c286 adjust(struct inodesc *idesc, short lcnt) in adjust() argument
291 if (fs2h16(dp->e2di_nlink) == lcnt) { in adjust()
299 fs2h16(dp->e2di_nlink), fs2h16(dp->e2di_nlink) - lcnt); in adjust()
301 if (lcnt < 0) { in adjust()
308 dp->e2di_nlink = h2fs16(fs2h16(dp->e2di_nlink) - lcnt); in adjust()
/mirbsd/src/usr.sbin/pwd_mkdb/
Dpwd_mkdb.c361 static int lcnt; in scan() local
367 ++lcnt; in scan()
381 warnx("at line #%d", lcnt); in scan()
/mirbsd/src/lib/libc/net/
Dres_debug.c451 int lcnt; in __p_rr() local
706 lcnt = 0; in __p_rr()
711 if (lcnt == 0) { in __p_rr()
713 lcnt = 5; in __p_rr()
717 lcnt--; in __p_rr()