/openbsd-current/usr.bin/vi/vi/ |
H A D | v_ulcase.c | 51 size_t cno, lcnt, len; local 77 lcnt = len - 1; 82 lcnt = cno + cnt - 1; 85 vp->m_final.cno = lcnt + 1; 88 if (ulcase(sp, lno, p, len, cno, lcnt))
|
H A D | vs_refresh.c | 163 recno_t lastline, lcnt; local 252 lcnt = vs_sm_nlines(sp, HMAP, LNO, sp->t_maxrows); 253 if (lcnt <= HALFSCREEN(sp)) 254 for (; lcnt && sp->t_rows != sp->t_maxrows; 255 --lcnt, ++sp->t_rows) { 263 lcnt = vs_sm_nlines(sp, TMAP, LNO, sp->t_maxrows); 264 if (lcnt <= HALFSCREEN(sp)) 265 for (; lcnt && sp->t_rows != sp->t_maxrows; 266 --lcnt, ++sp->t_rows) { 305 lcnt [all...] |
H A D | vs_smap.c | 1019 size_t lcnt; local 1026 lcnt = vs_screens(sp, p->lno, NULL); 1027 if (lcnt == p->soff) { 1191 recno_t lno, lcnt; local 1201 lcnt = from_sp->soff - 1; /* Correct for off-by-one. */ 1202 for (lno = from_sp->lno; --lno >= to_lno && lcnt <= max;) 1203 lcnt += vs_screens(sp, lno, NULL); 1206 lcnt = (vs_screens(sp, lno, NULL) - from_sp->soff) + 1; 1207 for (; ++lno < to_lno && lcnt <= max;) 1208 lcnt [all...] |
/openbsd-current/usr.bin/vi/ex/ |
H A D | ex_read.c | 299 recno_t lcnt, lno; local 313 lcnt = 0; 315 for (lno = fm->lno; !ex_getline(sp, fp, &len); ++lno, ++lcnt) { 316 if ((lcnt + 1) % INTERRUPT_CHECK == 0) { 335 *nlinesp = lcnt; 340 "%s: %lu lines, %lu characters", p, lcnt, ccnt);
|
H A D | ex_write.c | 273 recno_t fline, tline, lcnt; local 303 lcnt = 0; 306 for (; fline <= tline; ++fline, ++lcnt) { 308 if ((lcnt + 1) % INTERRUPT_CHECK == 0) { 358 *nlno = lcnt;
|
/openbsd-current/games/snake/ |
H A D | snake.c | 87 int lcnt, ccnt; /* user's idea of screen size */ variable 157 lcnt = strtonum(optarg, 1, INT_MAX, NULL); 190 if (!lcnt || lcnt > LINES - 2) 191 lcnt = LINES - 2; 195 i = lcnt < ccnt ? lcnt : ccnt; 326 repeat = lcnt - 1 - you.line; 393 if (you.line + 1 < lcnt) { 398 (you.line == lcnt [all...] |
/openbsd-current/usr.bin/split/ |
H A D | split.c | 222 long lcnt = 0; local 248 } else if (lcnt++ == numlines) { 250 lcnt = 1;
|
/openbsd-current/sbin/fsdb/ |
H A D | fsdb.c | 783 int lcnt; local 789 lcnt = strtol(argv[1], &cp, 0); 794 if (lcnt > USHRT_MAX || lcnt < 0) { 799 DIP_SET(curinode, di_nlink, lcnt);
|
/openbsd-current/sbin/fsck_ffs/ |
H A D | dir.c | 254 adjust(struct inodesc *idesc, short lcnt) argument 259 if (DIP(dp, di_nlink) == lcnt) { 267 DIP(dp, di_nlink) - lcnt); 269 if (lcnt < 0) { 277 DIP_SET(dp, di_nlink, DIP(dp, di_nlink) - lcnt);
|
/openbsd-current/sbin/fsck_ext2fs/ |
H A D | dir.c | 279 adjust(struct inodesc *idesc, short lcnt) argument 284 if (letoh16(dp->e2di_nlink) == lcnt) { 292 letoh16(dp->e2di_nlink), letoh16(dp->e2di_nlink) - lcnt); 294 if (lcnt < 0) { 301 dp->e2di_nlink = htole16(letoh16(dp->e2di_nlink) - lcnt);
|
/openbsd-current/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 356 static int lcnt; local 362 ++lcnt; 376 warnx("at line #%d", lcnt);
|
/openbsd-current/sys/dev/acpi/ |
H A D | dwiic_acpi.c | 335 uint16_t *lcnt, uint32_t *sda_hold_time) 361 *lcnt = aml_val2int(res.v_package[1]); 334 dwiic_acpi_get_params(struct dwiic_softc *sc, char *method, uint16_t *hcnt, uint16_t *lcnt, uint32_t *sda_hold_time) argument
|