Home
last modified time | relevance | path

Searched refs:nlines (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dnewwin.c60 __m_newwin(parent, nlines, ncols, begy, begx) in __m_newwin() argument
62 int nlines, ncols, begy, begx;
70 parent, nlines, ncols, begy, begx
76 if (nlines == 0) {
77 nlines = lines;
79 nlines -= begy;
92 || parent->_maxy < (begy-parent->_begy) + nlines
100 if (nlines == 0)
101 nlines = parent->_maxy - (begy - parent->_begy);
108 if (lines < begy + nlines)
[all …]
H A Dnewpad.c45 (newpad)(nlines, ncols)
46 int nlines, ncols;
51 __m_trace("newpad(%d, %d)", nlines, ncols);
54 w = __m_newwin((WINDOW *) 0, nlines, ncols, -1, -1);
60 (subpad)(parent, nlines, ncols, begy, begx)
62 int nlines, ncols, begy, begx; variable
69 parent, nlines, ncols, begy, begx
73 w = subwin(parent, nlines, ncols, begy, begx);
H A Dsetup.c492 int nlines = strtol(env, (char **) 0, 10); local
493 if (0 < nlines)
494 lines = nlines;
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dnewwin.c68 int nlines, int ncols, int begy, int begx) in __m_newwin() argument
79 if (nlines == 0) { in __m_newwin()
80 nlines = lines; in __m_newwin()
82 nlines -= begy; in __m_newwin()
96 parent->_maxy < (begy-parent->_begy) + nlines || in __m_newwin()
105 if (nlines == 0) in __m_newwin()
106 nlines = parent->_maxy - (begy - parent->_begy); in __m_newwin()
114 if (lines < begy + nlines) { in __m_newwin()
129 w->_first = (short *) calloc((size_t) (nlines + nlines), in __m_newwin()
134 w->_last = &w->_first[nlines]; in __m_newwin()
[all …]
H A Dnewpad.c53 newpad(int nlines, int ncols) in newpad() argument
57 w = __m_newwin((WINDOW *) 0, nlines, ncols, -1, -1); in newpad()
65 subpad(WINDOW *parent, int nlines, int ncols, int begy, int begx) in subpad() argument
69 w = subwin(parent, nlines, ncols, begy, begx); in subpad()
H A Dsetup.c517 int nlines = (int) strtol(env, (char **) 0, 10); in restartterm() local
518 if (0 < nlines) in restartterm()
519 lines = nlines; in restartterm()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmakenew.c50 _makenew(int nlines, int ncols, int begy, int begx) in _makenew() argument
58 nlines, ncols, begy, begx); in _makenew()
63 if ((win->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == NULL) in _makenew()
67 calloc(1, nlines * sizeof (_ochtype *))) == NULL)) { in _makenew()
71 if ((win->_firstch = (short *) malloc(2 * nlines * sizeof (short))) in _makenew()
88 win->_lastch = win->_firstch + nlines; in _makenew()
92 win->_maxy = (short) nlines; in _makenew()
100 (nlines >= (LINES + SP->Yabove)) && (ncols >= COLS)); in _makenew()
105 win->_bmarg = nlines - 1; in _makenew()
111 (void) memset((char *) win->_firstch, 0, (nlines * sizeof (short))); in _makenew()
[all …]
H A Dnewwin.c49 newwin(int nlines, int ncols, int by, int bx) in newwin() argument
54 if (nlines <= 0) in newwin()
55 nlines = LINES - by; in newwin()
59 if ((by < 0) || (bx < 0) || ((win = _makenew(nlines, ncols, by, in newwin()
64 while (counter < nlines) { in newwin()
84 int i, nlines = win->_maxy; in _image() local
94 for (i = 0; i < nlines; i++) { in _image()
H A Ddupwin.c59 int i, ncolumns = win->_maxx, nlines = win->_maxy; in dupwin() local
60 size_t line_size = nlines * sizeof (short); in dupwin()
77 win->_lastch = win->_firstch + nlines; in dupwin()
79 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
105 for (i = 0; i < nlines; ++i, ++wincp, ++newcp) { in dupwin()
H A DV3.upd_old_y.c47 _update_old_y_area(WINDOW *win, int nlines, int ncols, in _update_old_y_area() argument
52 for (row = start_line; nlines > 0; nlines--, row++) in _update_old_y_area()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dwclib.c105 static int invalid(const char *file, int nlines) in invalid() argument
108 error_info.line = nlines; in invalid()
112 return nlines; in invalid()
172 register Sfoff_t nlines; in wc_count() local
186 nlines = nwords = nchars = nbytes = 0; in wc_count()
233 if (x == -1 && eline != nlines && !(wp->mode & WC_QUIET)) in wc_count()
234 eline = invalid(file, nlines); in wc_count()
243 nlines++; in wc_count()
267 nlines++; in wc_count()
275 nlines++; in wc_count()
[all …]
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c503 off_t nlines; in command() local
535 nlines = number(); in command()
562 if (nlines == 0) in command()
563 nlines = (off_t)window; in command()
565 if (nlines > 1) in command()
566 window = (int)nlines; in command()
626 if (nlines == 0) in command()
627 nlines++; in command()
628 nlines = nlines * (window - 1); in command()
630 new_ss.first_line = old_ss.last_line + nlines; in command()
[all …]
/illumos-gate/usr/src/cmd/more/
H A Dmore.c227 static int colon(char *filename, int cmd, off_t nlines);
968 register off_t nlines; in command() local
986 nlines = number (&comchar); in command()
991 nlines = lastarg; in command()
996 lastarg = nlines; in command()
1006 retval = colon (filename, colonch, nlines); in command()
1020 if (nlines == 0) nlines++; in command()
1027 printf (gettext("...back %lld page"), nlines); in command()
1028 if (nlines > 1) in command()
1037 initline = Currline - dlines * (nlines + 1); in command()
[all …]
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dpager.c56 int nlines; in pager_open() local
68 nlines = 24; /* sensible default */ in pager_open()
71 nlines = strtol(cp, &lp, 0); in pager_open()
74 nlines = ws.ws_row; in pager_open()
76 p_maxlines = nlines - 1; in pager_open()
/illumos-gate/usr/src/cmd/banner/
H A Dbanner.c37 #define nlines 7 /* number of lines in a banner character */ macro
45 char alpha[nlines][pposs];
48 static char ctbl[nchars][nlines] = {
237 for (i = 0; i < nlines; i++) { in banfil()
248 for (i = 0; i < nlines; i++) in banset()
257 for (i = 0; i < nlines; i++) { in banprt()
/illumos-gate/usr/src/boot/libsa/
H A Dpager.c49 int nlines; in pager_open() local
52 nlines = 24; /* sensible default */ in pager_open()
54 nlines = strtol(cp, &lp, 0); in pager_open()
57 p_maxlines = nlines - 1; in pager_open()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_cmdsub.c358 int nlines; in move1() local
361 nlines = (addr2 - addr1) + 1; in move1()
395 undap2 = undap1 + nlines; in move1()
1011 int c, nlines, op; in zop() local
1045 nlines = c - '0'; in zop()
1050 nlines *= 10; in zop()
1051 nlines += c - '0'; in zop()
1053 if (nlines < lines) in zop()
1055 value(vi_WINDOW) = nlines; in zop()
1057 nlines += 2; in zop()
[all …]
H A Dex_vops.c235 int nlines, more; local
265 nlines = dol - zero;
266 while ((line *) endcore - truedol < nlines)
269 copyw(truedol+1, zero+1, nlines);
270 truedol += nlines;
294 truedol -= nlines;
295 copyw(zero+1, truedol+1, nlines);
H A Dex_re.c77 int nlines = lineDOL(); local
211 netchHAD(nlines);
704 snote(int total, int nlines) in snote() argument
709 if (nlines != 1 && nlines != total) in snote()
725 total, nlines); in snote()
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dgetnr2tm.awk66 process($1); nlines++;
69 if(w)process(w); t=1; print NR " lines in " t " sec: " NR+0 " lines/sec; nlines=" nlines;
H A Dgetnr2tm.ok1 1 lines in 1 sec: 1 lines/sec; nlines=1
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pragma/
H A Dtst.temporal.ksh74 nlines=$(wc -l $file | awk '{ print $1 - 1}')
75 head -n $nlines $file > $file.2
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd1.c443 long nlines; in type1() local
458 nlines = 0; in type1()
459 for (ip = msgvec, nlines = 0; in type1()
461 nlines += message[*ip - 1].m_lines; in type1()
464 nlines > (*cp == '\0' ? screensize() - 2 : atoi(cp))) { in type1()
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dfrontend.c541 int nlines = 0; in readline() local
546 nlines++; in readline()
560 nlines++; in readline()
566 return (nlines); in readline()
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c610 int nlines = 0; in load64() local
626 mem = realloc(mem, sizeof (*mem) * (nlines + 1)); in load64()
631 mem[nlines] = strdup(line); in load64()
632 if (mem[nlines] == NULL) { in load64()
636 nlines++; in load64()
655 for (i = 0; i < nlines; i++) { in load64()

12