| /mirbsd/src/usr.bin/vi/vi/ |
| D | vs_refresh.c | 168 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 …]
|
| D | v_ulcase.c | 53 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))
|
| D | vs_smap.c | 1054 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/ |
| D | config.c | 73 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()
|
| D | man.c | 621 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/ |
| D | ex_read.c | 307 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);
|
| D | ex_write.c | 289 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/ |
| D | split.c | 222 long lcnt = 0; in split2() local 245 } else if (lcnt++ == numlines) { in split2() 247 lcnt = 1; in split2()
|
| /mirbsd/src/sbin/fsdb/ |
| D | fsdb.c | 742 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/ |
| D | dir.c | 290 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/ |
| D | dir.c | 286 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/ |
| D | pwd_mkdb.c | 361 static int lcnt; in scan() local 367 ++lcnt; in scan() 381 warnx("at line #%d", lcnt); in scan()
|
| /mirbsd/src/lib/libc/net/ |
| D | res_debug.c | 451 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()
|