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.c62 int nlines, ncols, begy, begx;
76 if (nlines == 0) {
77 nlines = lines;
79 nlines -= begy;
100 if (nlines == 0)
108 if (lines < begy + nlines)
121 (size_t) (nlines + nlines), sizeof *w->_first
152 } while (++y < nlines-1);
171 w->_maxy = (short) nlines;
177 w->_bottom = (short) 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.c79 if (nlines == 0) { in __m_newwin()
80 nlines = lines; in __m_newwin()
82 nlines -= begy; in __m_newwin()
105 if (nlines == 0) 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()
169 for (y = 0; y < nlines; ++y) in __m_newwin()
176 w->_maxy = (short) nlines; in __m_newwin()
182 w->_bottom = (short) 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.c112 return nlines; in invalid()
243 nlines++; in wc_count()
267 nlines++; in wc_count()
275 nlines++; in wc_count()
288 nlines++; in wc_count()
311 nlines++; in wc_count()
332 nlines++; in wc_count()
362 nlines++; in wc_count()
399 nlines++; in wc_count()
510 nlines++; in wc_count()
[all …]
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c503 off_t nlines; in command() local
565 if (nlines > 1) in command()
627 nlines++; in command()
628 nlines = nlines * (window - 1); in command()
640 nlines++; in command()
664 nlines++; in command()
668 nlines = (nlines - 1) * (window - 1); in command()
704 nlines++; in command()
716 nlines++; in command()
740 nlines++; in command()
[all …]
/illumos-gate/usr/src/cmd/more/
H A Dmore.c996 lastarg = nlines; in command()
1020 if (nlines == 0) nlines++; in command()
1028 if (nlines > 1) in command()
1053 if (nlines == 0) nlines = dlines; in command()
1055 ret (nlines); in command()
1058 if (nlines != 0) nscroll = nlines; in command()
1066 if (nlines == 0) nlines++; in command()
1092 nlines--; in command()
1096 if (nlines != 0) in command()
1100 ret (nlines); 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
1011 int c, nlines, op; in zop() local
1045 nlines = c - '0'; in zop()
1050 nlines *= 10; in zop()
1057 nlines += 2; in zop()
1071 zop2(nlines, op); in zop()
1103 nlines--; in zop2()
1104 nlines >>= 1; in zop2()
1106 nlines--; in zop2()
1110 addr2 += nlines; in zop2()
[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