Searched refs:lcnt (Results 1 - 12 of 12) sorted by relevance

/openbsd-current/usr.bin/vi/vi/
H A Dv_ulcase.c51 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 Dvs_refresh.c163 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 Dvs_smap.c1019 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 Dex_read.c299 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 Dex_write.c273 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 Dsnake.c87 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 Dsplit.c222 long lcnt = 0; local
248 } else if (lcnt++ == numlines) {
250 lcnt = 1;
/openbsd-current/sbin/fsdb/
H A Dfsdb.c783 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 Ddir.c254 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 Ddir.c279 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 Dpwd_mkdb.c356 static int lcnt; local
362 ++lcnt;
376 warnx("at line #%d", lcnt);
/openbsd-current/sys/dev/acpi/
H A Ddwiic_acpi.c335 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

Completed in 523 milliseconds