/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-cleanup-all-mountpoints.c | 56 char **lines; in do_cleanup() local 82 lines = g_strsplit (hal_mtab_buf, "\n", 0); in do_cleanup() 86 for (i = 0; lines[i] != NULL; i++) { in do_cleanup() 90 printf (" line = '%s'\n", lines[i]); in do_cleanup() 93 if ((lines[i])[0] == '#') in do_cleanup() 96 line_elements = g_strsplit (lines[i], "\t", 6); in do_cleanup() 120 line_to_free = lines[i]; in do_cleanup() 121 for (j = i; lines[j] != NULL; j++) { in do_cleanup() 122 lines[j] = lines[j+1]; in do_cleanup() 124 lines[j] = NULL; in do_cleanup() [all …]
|
H A D | hal-storage-cleanup-mountpoint.c | 56 char **lines; in do_cleanup() local 83 lines = g_strsplit (hal_mtab_buf, "\n", 0); in do_cleanup() 88 for (i = 0; lines[i] != NULL && !found; i++) { in do_cleanup() 92 printf (" line = '%s'\n", lines[i]); in do_cleanup() 95 if ((lines[i])[0] == '#') in do_cleanup() 98 line_elements = g_strsplit (lines[i], "\t", 6); in do_cleanup() 115 line_to_free = lines[i]; in do_cleanup() 116 for (j = i; lines[j] != NULL; j++) { in do_cleanup() 117 lines[j] = lines[j+1]; in do_cleanup() 119 lines[j] = NULL; in do_cleanup() [all …]
|
H A D | hal-storage-shared.c | 281 char **lines; in handle_unmount() local 344 lines = g_strsplit (hal_mtab_buf, "\n", 0); in handle_unmount() 351 for (i = 0; lines[i] != NULL; i++) { in handle_unmount() 357 printf (" line = '%s'\n", lines[i]); in handle_unmount() 360 if ((lines[i])[0] == '#') in handle_unmount() 363 line_elements = g_strsplit (lines[i], "\t", 6); in handle_unmount() 393 line_to_free = lines[i]; in handle_unmount() 395 for (j = i; lines[j] != NULL; j++) { in handle_unmount() 396 lines[j] = lines[j+1]; in handle_unmount() 398 lines[j] = NULL; in handle_unmount() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/Documentation/sphinx/ |
H A D | cdoc.py | 54 def __init__(self, lines): argument 57 self.lines = lines 72 self.last = next(self.lines).rstrip() 84 def readline_multi(lines, line): argument 88 (n, l) = next(lines) 93 lines.undo() 96 def readline_delim(lines, delim): argument 99 (lineno, line) = next(lines) 103 (n, l) = next(lines) 110 def process_block(lines): argument [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_class.c | 210 static int lines = 0; in xcacheauclass() local 232 lines++; in xcacheauclass() 235 class_tbl = (au_class_ent_t **)calloc((size_t)lines + 1, in xcacheauclass() 242 lines = 0; in xcacheauclass() 250 class_tbl[lines] = (au_class_ent_t *) in xcacheauclass() 252 if (class_tbl[lines] == NULL) { in xcacheauclass() 256 class_tbl[lines]->ac_name = strdup(p_class->ac_name); in xcacheauclass() 257 class_tbl[lines]->ac_class = p_class->ac_class; in xcacheauclass() 258 class_tbl[lines]->ac_desc = strdup(p_class->ac_desc); in xcacheauclass() 260 printclass(class_tbl[lines]); in xcacheauclass() [all …]
|
H A D | audit_event.c | 279 int lines = 0; in cacheauevent() local 299 lines++; in cacheauevent() 302 size = lines; in cacheauevent() 310 p_tbl = calloc(lines + 1, sizeof (au_event_ent_t)); in cacheauevent() 315 lines = 0; in cacheauevent() 320 p_tbl[lines] = (au_event_ent_t *) in cacheauevent() 322 if (p_tbl[lines] == NULL) { in cacheauevent() 326 p_tbl[lines]->ae_number = p_event->ae_number; in cacheauevent() 327 p_tbl[lines]->ae_name = strdup(p_event->ae_name); in cacheauevent() 328 p_tbl[lines]->ae_desc = strdup(p_event->ae_desc); in cacheauevent() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_v.c | 95 if(value(vi_WINDOW) >= lines || options[vi_WINDOW].odefault == value(vi_WINDOW)) in windowinit() 96 value(vi_WINDOW) = lines -1; in windowinit() 97 options[vi_WINDOW].odefault = lines - 1; in windowinit() 100 options[vi_SCROLL].odefault = (lines - 1)/2; in windowinit() 111 vdirty(0, lines); in redraw() 140 if (columns != jwin.ws_col || lines != jwin.ws_row) 159 lines = jwin.ws_row; in setsize() 164 lines = envlines; in setsize() 172 jwin.ws_row = lines; in setsize() 184 if (lines <= 1) in setsize() [all …]
|
H A D | ex_tty.c | 120 …tupterm, lines %d, columns %d, clear_screen '%s', cursor_address '%s'\n", lines, columns, clear_sc… in setterm() 128 i = lines; in setterm() 129 if (lines <= 1) in setterm() 130 lines = 24; in setterm() 131 if (lines > TUBELINES) in setterm() 132 lines = TUBELINES; in setterm() 133 l = lines; in setterm() 138 if (l > lines) in setterm() 139 l = lines; in setterm() 245 lines = 2; in setterm() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | chars.c | 46 static struct ln lines[] = { variable 446 for (i = 0; i < sizeof(lines)/sizeof(lines[0]); i++) { in mchars_alloc() 447 slot = ohash_qlookup(&mchars, lines[i].roffcode); in mchars_alloc() 449 ohash_insert(&mchars, slot, lines + i); in mchars_alloc() 503 for (i = 0; i < sizeof(lines)/sizeof(lines[0]); i++) in mchars_uc2str() 504 if (uc == lines[i].unicode) in mchars_uc2str() 505 return lines[i].ascii; in mchars_uc2str()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pragma/ |
H A D | tst.temporal.ksh | 46 @lines = count(); 52 /* Bump @lines every time we print a line. */ 53 @lines = count(); 55 @lines = count(); 56 printa("99999999999999999 lines %@u\n", @lines); 61 @lines = count(); 100 echo $tst: incorrect number of lines output
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | rep.cc | 326 Property lines; in gather_recursive_deps() local 344 for (lines = get_prop(np->prop,recursive_prop); in gather_recursive_deps() 345 lines != NULL; in gather_recursive_deps() 346 lines = get_prop(lines->next, recursive_prop)) { in gather_recursive_deps() 351 if (lines->body.recursive.in_depinfo) in gather_recursive_deps() 353 if (!lines->body.recursive.has_built) in gather_recursive_deps() 356 lines->body.recursive.in_depinfo=true; in gather_recursive_deps() 365 APPEND_NAME(lines->body.recursive.directory, in gather_recursive_deps() 368 APPEND_NAME(lines->body.recursive.target, in gather_recursive_deps() 373 for (dp = lines->body.recursive.makefiles; in gather_recursive_deps()
|
/illumos-gate/usr/src/test/zfs-tests/callbacks/ |
H A D | zfs_dbgmsg.ksh | 19 typeset lines=${1:-200} 22 echo " Tailing last $lines lines of zfs_dbgmsg log" 28 mdb -ke "::zfs_dbgmsg ! tail -n $lines" 30 sudo mdb -ke "::zfs_dbgmsg ! tail -n $lines"
|
H A D | zfs_mmp.ksh | 20 typeset lines=${1:-40} 29 echo " Last $lines lines of $f" 32 sudo tail -n $lines $f
|
/illumos-gate/usr/src/data/locale/tools/ |
H A D | utf8-rollup.pl | 57 my @lines = <FIN>; 59 chomp(@lines); 62 foreach my $l (@lines) { 128 my @lines = <FIN>; 130 chomp(@lines); 132 foreach my $l (@lines) {
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | newterm.c | 146 if (lines < 2) in __m_slk_init() 149 sp->_slk._w = subwin(sp->_newscr, 1, 0, lines-1, 0); in __m_slk_init() 284 lines = 1; in newterm() 298 if ((sp->_curscr = newwin(lines, columns, 0, 0)) == NULL) in newterm() 301 if ((sp->_newscr = newwin(lines, columns, 0, 0)) == NULL) in newterm() 305 sp->_hash = (unsigned int *) calloc(lines, sizeof (*sp->_hash)); in newterm() 307 sp->_hash = (unsigned long *) calloc(lines, sizeof (*sp->_hash)); in newterm() 369 stdscr = newwin(lines - n, 0, rip.top, 0); in newterm() 383 y += lines; in newterm() 444 LINES = lines; in set_term()
|
H A D | mvcur.c | 372 newrow %= lines; in __m_mvcur() 380 if (newrow == lines-1 && newcol == columns-1) { in __m_mvcur() 386 oldrow %= lines; in __m_mvcur() 412 row(try, lines - 1, newrow); in __m_mvcur() 473 cost(row_address, __MOVE_ROW, lines-1, 0); in __m_mvcur_cost() 474 cost(parm_up_cursor, __MOVE_N_UP, lines-1, 0); in __m_mvcur_cost() 475 cost(parm_down_cursor, __MOVE_N_DOWN, lines-1, 0); in __m_mvcur_cost() 479 cost(cursor_address, __MOVE_ROW_COLUMN, lines-1, columns-1); in __m_mvcur_cost()
|
/illumos-gate/usr/src/cmd/last/ |
H A D | last.c | 106 static int lines; variable 255 lines = CHUNK_SIZE; in main() 256 ttnames = calloc(lines, sizeof (char *)); in main() 257 logouts = calloc(lines, sizeof (time_t)); in main() 267 for (i = 0; i <= lines; i++) { in main() 268 if (i == lines) in main() 433 for (i = 0; i < lines; i++) in main() 470 lines += CHUNK_SIZE; in reallocate_buffer() 471 tmpttnames = realloc(ttnames, sizeof (char *)*lines); in reallocate_buffer() 472 tmplogouts = realloc(logouts, sizeof (time_t)*lines); in reallocate_buffer() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newterm.c | 143 if (lines < 2) in __m_slk_init() 146 sp->_slk._w = subwin(sp->_newscr, 1, 0, --lines, 0); in __m_slk_init() 288 lines = 1; 309 if ((sp->_curscr = newwin(lines, columns, 0, 0)) == (WINDOW *) 0) 312 if ((sp->_newscr = newwin(lines, columns, 0, 0)) == (WINDOW *) 0) 315 sp->_hash = (unsigned long *) calloc(lines, sizeof *sp->_hash); 356 stdscr = newwin(lines - n, 0, rip.top, 0); 367 y += lines; 438 LINES = lines;
|
/illumos-gate/usr/src/cmd/more/ |
H A D | more.help | 5 <space> Display next k lines of text [current screen size] 6 z Display next k lines of text [current screen size]* 7 <return> Display next k lines of text [1]* 8 d or ctrl-D Scroll k lines [current scroll size, initially 11]* 10 s Skip forward k lines of text [1]
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | table.py | 37 self.lines = list() 52 self.lines.append((sortkey, va)) 59 self.lines.sort() 60 for (k, va) in self.lines:
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | edit.c | 96 long ms, lines; in edit1() local 222 lines = 0; in edit1() 225 lines++; in edit1() 237 lines++; in edit1() 240 mp->m_lines = lines; in edit1()
|
H A D | cmd4.c | 193 int lines; in loadmsg() local 234 lines = 0; in loadmsg() 237 lines++; in loadmsg() 249 lines++; in loadmsg() 252 mp->m_lines = lines; in loadmsg() 257 printf(gettext("[Loaded] %d/%ld\n"), lines, ms); in loadmsg()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | grep.sh | 92 to see how many lines find both foo and bar. 94 and some lines contain bar only. 95 However, many lines contain both foo and also bar. 97 There should be six lines with foo and bar.
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | ast.c | 34 astwinsize(int fd, int* lines, int* columns) in astwinsize() argument 36 if (lines) in astwinsize() 37 *lines = 24; in astwinsize()
|
/illumos-gate/usr/src/lib/libeti/panel/common/ |
H A D | new.c | 67 int lines, cols; in new_panel() local 77 getmaxyx(window, lines, cols); in new_panel() 78 panel -> wendy = panel->wstarty + lines - 1; in new_panel()
|