Home
last modified time | relevance | path

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

12

/netbsd-src/external/bsd/nvi/dist/vi/
H A Dvs_refresh.c150 db_recno_t lastline, lcnt; in vs_paint() local
232 lcnt = vs_sm_nlines(sp, HMAP, LNO, sp->t_maxrows); in vs_paint()
233 if (lcnt <= HALFSCREEN(sp)) in vs_paint()
234 for (; lcnt && sp->t_rows != sp->t_maxrows; in vs_paint()
235 --lcnt, ++sp->t_rows) { in vs_paint()
243 lcnt = vs_sm_nlines(sp, TMAP, LNO, sp->t_maxrows); in vs_paint()
244 if (lcnt <= HALFSCREEN(sp)) in vs_paint()
245 for (; lcnt && sp->t_rows != sp->t_maxrows; in vs_paint()
246 --lcnt, ++sp->t_rows) { in vs_paint()
285 lcnt = vs_sm_nlines(sp, TMAP, LNO, HALFTEXT(sp)); in vs_paint()
[all …]
H A Dv_ulcase.c59 size_t cno, lcnt, len; in v_ulcase() local
85 lcnt = len - 1; in v_ulcase()
90 lcnt = cno + cnt - 1; in v_ulcase()
93 vp->m_final.cno = lcnt + 1; in v_ulcase()
96 if (ulcase(sp, lno, p, len, cno, lcnt)) in v_ulcase()
H A Dvs_smap.c1056 size_t lcnt; in vs_sm_next() local
1063 lcnt = vs_screens(sp, p->lno, NULL); in vs_sm_next()
1064 if (lcnt == p->soff) { in vs_sm_next()
1228 db_recno_t lno, lcnt; in vs_sm_nlines() local
1238 lcnt = from_sp->soff - 1; /* Correct for off-by-one. */ in vs_sm_nlines()
1239 for (lno = from_sp->lno; --lno >= to_lno && lcnt <= max;) in vs_sm_nlines()
1240 lcnt += vs_screens(sp, lno, NULL); in vs_sm_nlines()
1243 lcnt = (vs_screens(sp, lno, NULL) - from_sp->soff) + 1; in vs_sm_nlines()
1244 for (; ++lno < to_lno && lcnt <= max;) in vs_sm_nlines()
1245 lcnt += vs_screens(sp, lno, NULL); in vs_sm_nlines()
[all …]
/netbsd-src/games/snake/snake/
H A Dsnake.c115 static int lcnt, ccnt; /* user's idea of screen size */ variable
172 lcnt = atoi(optarg); in main()
201 if (!lcnt || lcnt > LINES - 2) in main()
202 lcnt = LINES - 2; in main()
206 i = MIN(lcnt, ccnt); in main()
336 repeat = lcnt - 1 - you.line; in mainloop()
402 if (you.line + 1 < lcnt) { in mainloop()
407 (you.line == lcnt - 1)) in mainloop()
472 mvaddch(lcnt + 1, i, '-'); in drawbox()
474 for (i = 0; i <= lcnt + 1; i++) { in drawbox()
[all …]
/netbsd-src/lib/libcurses/
H A Dslk.c815 int retval, inc, lcnt, tx; in __slk_draw() local
842 lcnt = 0; in __slk_draw()
844 while (lcnt < screen->slk_label_len) { in __slk_draw()
845 inc = wctomb(ts, l->label[lcnt]); in __slk_draw()
848 lcnt++; in __slk_draw()
854 l->x + tx, 0, lcnt, l->label[lcnt]); in __slk_draw()
856 screen->slk_label_len, wcwidth(l->label[lcnt])); in __slk_draw()
858 wc[0] = l->label[lcnt]; in __slk_draw()
866 if (l->x + wcwidth(l->label[lcnt] + tx) >= in __slk_draw()
876 0, l->x + tx, l->label[lcnt]); in __slk_draw()
[all …]
/netbsd-src/usr.bin/man/
H A Dmanconf.c105 int lcnt; in config() local
113 for (lcnt = 1; (p = fgetln(cfp, &len)) != NULL; ++lcnt) { in config()
117 warnx("%s: line %d corrupted", fname, lcnt); in config()
168 fname, lcnt, p); in config()
H A Dman.c846 int lcnt, print; in how() local
859 for (lcnt = print = 0; fgets(buf, sizeof(buf), fp);) { in how()
873 ++lcnt; in how()
875 for(; lcnt; --lcnt) in how()
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_read.c310 db_recno_t lcnt, lno; in ex_readfp() local
326 lcnt = 0; in ex_readfp()
328 for (lno = fm->lno; !ex_getline(sp, fp, &len); ++lno, ++lcnt) { in ex_readfp()
329 if ((lcnt + 1) % INTERRUPT_CHECK == 0) { in ex_readfp()
349 *nlinesp = lcnt; in ex_readfp()
354 "148|%s: %lu lines, %lu characters", q, (unsigned long)lcnt, in ex_readfp()
H A Dex_write.c297 db_recno_t fline, tline, lcnt; in ex_writefp() local
330 lcnt = 0; in ex_writefp()
333 for (; fline <= tline; ++fline, ++lcnt) { in ex_writefp()
335 if ((lcnt + 1) % INTERRUPT_CHECK == 0) { in ex_writefp()
383 *nlno = lcnt; in ex_writefp()
/netbsd-src/sys/kern/
H A Dsys_sched.c114 u_int lcnt; in do_sched_setparam() local
155 lcnt = 0; in do_sched_setparam()
163 lcnt++; in do_sched_setparam()
192 return (lcnt == 0) ? ESRCH : error; in do_sched_setparam()
350 u_int lcnt; in sys__sched_setaffinity() local
437 lcnt = 0; in sys__sched_setaffinity()
466 lcnt++; in sys__sched_setaffinity()
469 if (lcnt == 0) { in sys__sched_setaffinity()
H A Dsys_pset.c429 int error = 0, lcnt; in sys__pset_bind() local
498 lcnt = 0; in sys__pset_bind()
514 lcnt++; in sys__pset_bind()
517 if (lcnt == 0) { in sys__pset_bind()
H A Dvfs_lockf.c200 u_long lcnt; in lf_alloc()
204 lcnt = atomic_inc_ulong_nv(&uip->ui_lockcnt); in lf_alloc()
205 if (uid && allowfail && lcnt > in lf_alloc()
196 u_long lcnt; lf_alloc() local
/netbsd-src/sys/dev/acpi/
H A Ddwiic_acpi.c49 uint16_t lcnt; member
158 param->lcnt = (uint16_t)obj->Package.Elements[1].Integer.Value; in dwiic_acpi_parse_param()
172 sc->ss_lcnt = sscn.lcnt; in dwiic_acpi_configure()
176 sc->fs_lcnt = fmcn.lcnt; in dwiic_acpi_configure()
/netbsd-src/usr.bin/split/
H A Dsplit.c248 off_t lcnt; in split2() local
254 for (lcnt = 0;;) in split2()
268 if (*Ce == '\n' && ++lcnt == numlines) { in split2()
272 lcnt = 0; in split2()
/netbsd-src/sbin/fsck_ffs/
H A Ddir.c445 adjust(struct inodesc *idesc, int lcnt) in adjust() argument
453 if (nlink == lcnt) { in adjust()
479 lcnt--; in adjust()
482 if (lcnt != 0) { in adjust()
488 nlink, nlink - lcnt); in adjust()
490 if (lcnt < 0) { in adjust()
498 DIP_SET(dp, nlink, iswap16(nlink - lcnt)); in adjust()
/netbsd-src/sbin/fsck_ext2fs/
H A Ddir.c319 adjust(struct inodesc *idesc, short lcnt) in adjust() argument
324 if (fs2h16(dp->e2di_nlink) == lcnt) { in adjust()
332 fs2h16(dp->e2di_nlink), fs2h16(dp->e2di_nlink) - lcnt); in adjust()
334 if (lcnt < 0) { in adjust()
341 dp->e2di_nlink = h2fs16(fs2h16(dp->e2di_nlink) - lcnt); in adjust()
/netbsd-src/sbin/fsck_lfs/
H A Ddir.c331 adjust(struct inodesc *idesc, short lcnt) in adjust() argument
344 if (lfs_dino_getnlink(fs, dp) == lcnt) { in adjust()
352 lfs_dino_getnlink(fs, dp), lfs_dino_getnlink(fs, dp) - lcnt); in adjust()
354 if (lcnt < 0) { in adjust()
362 lfs_dino_getnlink(fs, dp) - lcnt); in adjust()
/netbsd-src/sys/arch/mips/ingenic/
H A Djziic.c243 int ticks, hcnt, lcnt, hold, setup; in jziic_set_speed() local
248 lcnt = (ticks * 47 / (40 + 47)) - 1; in jziic_set_speed()
253 DPRINTF("hcnt %d lcnt %d hold %d\n", hcnt, lcnt, hold); in jziic_set_speed()
255 bus_space_write_4(sc->sc_memt, sc->sc_memh, JZ_SMBSLCNT, lcnt); in jziic_set_speed()
/netbsd-src/external/gpl3/gcc.old/dist/libquadmath/printf/
H A Dprintf_fp.c955 size_t lcnt = fracsize; in __quadmath_printf_fp() local
956 while (lcnt >= 1 && frac[lcnt - 1] == 0) in __quadmath_printf_fp()
957 --lcnt; in __quadmath_printf_fp()
958 more_bits = lcnt > 0; in __quadmath_printf_fp()
/netbsd-src/external/gpl3/gcc/dist/libquadmath/printf/
H A Dprintf_fp.c955 size_t lcnt = fracsize; in __quadmath_printf_fp() local
956 while (lcnt >= 1 && frac[lcnt - 1] == 0) in __quadmath_printf_fp()
957 --lcnt; in __quadmath_printf_fp()
958 more_bits = lcnt > 0; in __quadmath_printf_fp()
/netbsd-src/bin/csh/
H A Ddol.c824 int c, ocnt, lcnt, mcnt; in heredoc() local
856 lcnt = BUFSIZE - 4; in heredoc()
863 if (--lcnt < 0) { in heredoc()
/netbsd-src/lib/libc/nameser/
H A Dns_print.c421 int n, lcnt; in ns_sprintrrf() local
438 lcnt = 0; in ns_sprintrrf()
443 if (lcnt == 0) { in ns_sprintrrf()
446 lcnt = 10; in ns_sprintrrf()
451 lcnt--; in ns_sprintrrf()
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_print.c414 int n, lcnt; in ns_sprintrrf() local
431 lcnt = 0; in ns_sprintrrf()
436 if (lcnt == 0) { in ns_sprintrrf()
439 lcnt = 10; in ns_sprintrrf()
444 lcnt--; in ns_sprintrrf()
/netbsd-src/sbin/fsdb/
H A Dfsdb.c1532 int lcnt; in CMDFUNC() local
1538 lcnt = strtol(argv[1], &cp, 0); in CMDFUNC()
1543 if (lcnt > USHRT_MAX || lcnt < 0) { in CMDFUNC()
1547 DIP_SET(curinode, nlink, iswap16(lcnt)); in CMDFUNC()
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/altera/
H A Dsocfpga_stratix10_socdk.dts132 i2c-sdl-falling-time-ns = <890>; /* lcnt */

12