Lines Matching refs:opts
175 static optdesc_t opts = { variable
198 if (opts.o_outpmode & OPT_UDATE) { in print_timestamp()
200 } else if (opts.o_outpmode & OPT_DDATE) { in print_timestamp()
251 if (opts.o_outpmode & OPT_USERS) { in list_getsize()
258 } else if (opts.o_outpmode & OPT_TASKS) { in list_getsize()
262 } else if (opts.o_outpmode & OPT_PROJECTS) { in list_getsize()
269 } else if (opts.o_outpmode & OPT_ZONES) { in list_getsize()
276 opts.o_outpmode); in list_getsize()
287 if (getvmusage(flags, opts.o_interval, NULL, &nres) != 0) in list_getsize()
292 ret = getvmusage(flags, opts.o_interval, results, &nres); in list_getsize()
381 if (((opts.o_outpmode & OPT_UDATE) || (opts.o_outpmode & OPT_DDATE)) && in list_print()
382 ((list->l_type == LT_LWPS) || !(opts.o_outpmode & OPT_SPLIT))) in list_print()
384 if (opts.o_outpmode & OPT_TTY) in list_print()
390 if (opts.o_outpmode & OPT_LWPS) in list_print()
396 if (opts.o_outpmode & OPT_LWPS) in list_print()
402 if (opts.o_outpmode & OPT_LWPS) in list_print()
408 if (opts.o_outpmode & OPT_LWPS) in list_print()
414 if (opts.o_outpmode & OPT_LWPS) { in list_print()
415 if (opts.o_outpmode & OPT_PSINFO) { in list_print()
416 if (opts.o_outpmode & OPT_LGRP) in list_print()
421 if (opts.o_outpmode & OPT_MSACCT) in list_print()
424 if (opts.o_outpmode & OPT_PSINFO) { in list_print()
425 if (opts.o_outpmode & OPT_LGRP) in list_print()
430 if (opts.o_outpmode & OPT_MSACCT) in list_print()
460 opts.o_outpmode & OPT_NORESOLVE, in list_print()
461 opts.o_outpmode & (OPT_TERMCAP|OPT_TRUNC), in list_print()
466 opts.o_outpmode & (OPT_TERMCAP|OPT_TRUNC), in list_print()
471 opts.o_outpmode & OPT_NORESOLVE, in list_print()
472 opts.o_outpmode & (OPT_TERMCAP|OPT_TRUNC), in list_print()
480 if (opts.o_outpmode & OPT_TTY) in list_print()
502 if (opts.o_outpmode & OPT_LWPS) in list_print()
508 opts.o_outpmode & OPT_NORESOLVE, in list_print()
509 opts.o_outpmode & (OPT_TERMCAP|OPT_TRUNC), in list_print()
511 if (opts.o_outpmode & OPT_PSINFO) { in list_print()
530 if (opts.o_outpmode & OPT_LWPS) in list_print()
537 if (opts.o_outpmode & OPT_TTY) in list_print()
540 if (opts.o_outpmode & OPT_LGRP) { in list_print()
558 if (opts.o_outpmode & OPT_MSACCT) { in list_print()
571 if (opts.o_outpmode & OPT_TTY) in list_print()
586 if (opts.o_outpmode & OPT_TTY) in list_print()
588 if (opts.o_outpmode & OPT_TERMCAP) { in list_print()
594 while (i++ < opts.o_nbottom) { in list_print()
600 while (i++ < opts.o_ntop) { in list_print()
607 if (opts.o_outpmode & OPT_TTY) in list_print()
610 if ((opts.o_outpmode & OPT_SPLIT) && list->l_type == LT_LWPS) in list_print()
618 if (opts.o_outpmode & OPT_TTY) in list_print()
726 if (opts.o_outpmode & OPT_LWPS) in list_update()
756 if (opts.o_outpmode & OPT_LWPS) in list_update()
799 (opts.o_interval * (usage->pr_vctx/period)); in lwp_update()
801 (opts.o_interval * (usage->pr_ictx/period)); in lwp_update()
803 (opts.o_interval * (usage->pr_sysc/period)); in lwp_update()
805 (opts.o_interval * (usage->pr_sigs/period)); in lwp_update()
946 if (nlwps > 1 && (opts.o_outpmode & (OPT_LWPS | OPT_PSETS))) { in prstat_scandir()
977 if ((opts.o_outpmode & (OPT_PSETS | OPT_LWPS)) in prstat_scandir()
1012 if (!(opts.o_outpmode & OPT_MSACCT)) { in prstat_scandir()
1022 if ((opts.o_outpmode & OPT_LWPS) && (nlwps > 1)) { in prstat_scandir()
1094 if (opts.o_outpmode & OPT_USERS) in list_refresh()
1096 if (opts.o_outpmode & OPT_TASKS) in list_refresh()
1098 if (opts.o_outpmode & OPT_PROJECTS) in list_refresh()
1100 if (opts.o_outpmode & OPT_ZONES) in list_refresh()
1102 if (opts.o_outpmode & OPT_LGRP) in list_refresh()
1118 if ((opts.o_outpmode & OPT_TERMCAP) && (is_curses_on == FALSE)) { in curses_on()
1129 if ((is_curses_on == TRUE) && (opts.o_outpmode & OPT_TERMCAP)) { in curses_off()
1149 opts.o_outpmode &= ~OPT_USEHOME; in nlines()
1160 if ((opts.o_outpmode & OPT_FULLSCREEN) && in setmovecur()
1161 (opts.o_outpmode & OPT_USEHOME)) { in setmovecur()
1165 if (opts.o_outpmode & OPT_SPLIT) { in setmovecur()
1166 if (opts.o_ntop == 0) in setmovecur()
1167 n = opts.o_nbottom + 1; in setmovecur()
1169 n = opts.o_ntop + opts.o_nbottom + 2; in setmovecur()
1171 if (opts.o_outpmode & OPT_USERS) in setmovecur()
1172 n = opts.o_nbottom + 1; in setmovecur()
1174 n = opts.o_ntop + 1; in setmovecur()
1176 if (((opts.o_outpmode & OPT_UDATE) || (opts.o_outpmode & OPT_DDATE))) in setmovecur()
1192 if (opts.o_outpmode & OPT_FULLSCREEN) { in setsize()
1198 opts.o_outpmode &= ~OPT_USEHOME; in setsize()
1203 if ((opts.o_outpmode & OPT_UDATE) || in setsize()
1204 (opts.o_outpmode & OPT_DDATE)) in setsize()
1208 if (opts.o_outpmode & OPT_SPLIT) { in setsize()
1212 opts.o_ntop = (n / 4) * 3; in setsize()
1213 opts.o_nbottom = n - 1 - opts.o_ntop; in setsize()
1216 if (opts.o_outpmode & OPT_USERS) in setsize()
1217 opts.o_nbottom = n; in setsize()
1219 opts.o_ntop = n; in setsize()
1244 opts.o_outpmode &= ~OPT_TERMCAP; in ldtermcap()
1258 opts.o_outpmode &= ~OPT_TERMCAP; in ldtermcap()
1263 opts.o_outpmode &= ~OPT_TERMCAP; in ldtermcap()
1274 opts.o_outpmode &= ~OPT_USEHOME; in ldtermcap()
1299 if (opts.o_outpmode & OPT_FULLSCREEN) in set_signals()
1392 opts.o_outpmode |= OPT_NORESOLVE; in main()
1395 opts.o_outpmode |= OPT_REALTIME; in main()
1398 opts.o_outpmode &= ~OPT_TERMCAP; in main()
1399 opts.o_outpmode &= ~OPT_FULLSCREEN; in main()
1404 opts.o_outpmode |= OPT_UDATE; in main()
1406 opts.o_outpmode |= OPT_DDATE; in main()
1417 opts.o_outpmode |= OPT_LGRP; in main()
1421 opts.o_outpmode &= ~OPT_PSINFO; in main()
1422 opts.o_outpmode |= OPT_MSACCT; in main()
1425 opts.o_outpmode &= ~OPT_PSINFO; in main()
1426 opts.o_outpmode |= OPT_USERS; in main()
1429 opts.o_outpmode |= OPT_SPLIT | OPT_USERS; in main()
1432 opts.o_outpmode |= OPT_SPLIT | OPT_TASKS; in main()
1435 opts.o_outpmode |= OPT_SPLIT | OPT_PROJECTS; in main()
1440 opts.o_ntop = Atoi(p); in main()
1442 opts.o_nbottom = Atoi(p); in main()
1443 else if (opts.o_ntop == 0) in main()
1444 opts.o_nbottom = 5; in main()
1445 opts.o_outpmode &= ~OPT_FULLSCREEN; in main()
1448 opts.o_sortorder = -1; in main()
1452 opts.o_sortorder = 1; in main()
1474 opts.o_outpmode |= OPT_PSETS; in main()
1486 opts.o_outpmode |= OPT_LWPS; in main()
1489 opts.o_outpmode |= OPT_TRUNC; in main()
1499 opts.o_outpmode |= OPT_SPLIT | OPT_ZONES; in main()
1507 if ((opts.o_outpmode & OPT_USERS) && in main()
1508 !(opts.o_outpmode & OPT_SPLIT)) in main()
1509 opts.o_nbottom = opts.o_ntop; in main()
1510 if (!(opts.o_outpmode & OPT_SPLIT) && opts.o_ntop == 0) in main()
1512 if (opts.o_nbottom == 0) in main()
1514 if (!(opts.o_outpmode & OPT_SPLIT) && (opts.o_outpmode & OPT_USERS) && in main()
1515 ((opts.o_outpmode & (OPT_PSINFO | OPT_MSACCT)))) in main()
1518 if ((opts.o_outpmode & OPT_SPLIT) && (opts.o_outpmode & OPT_USERS) && in main()
1519 !((opts.o_outpmode & (OPT_PSINFO | OPT_MSACCT)))) in main()
1523 if ((opts.o_outpmode & OPT_USERS) && in main()
1524 (opts.o_outpmode & (OPT_TASKS | OPT_PROJECTS | OPT_ZONES))) in main()
1528 if (((opts.o_outpmode & OPT_TASKS) && in main()
1529 (opts.o_outpmode & (OPT_PROJECTS|OPT_ZONES))) || in main()
1530 ((opts.o_outpmode & OPT_PROJECTS) && in main()
1531 (opts.o_outpmode & (OPT_TASKS|OPT_ZONES)))) { in main()
1540 if ((opts.o_outpmode & OPT_LGRP) && (opts.o_outpmode & OPT_MSACCT)) { in main()
1545 opts.o_interval = Atoi(argv[optind++]); in main()
1547 opts.o_count = Atoi(argv[optind++]); in main()
1548 if (opts.o_count == 0) in main()
1552 if (opts.o_outpmode & OPT_REALTIME) in main()
1555 opts.o_outpmode |= OPT_TTY; /* interactive */ in main()
1556 if (!(opts.o_outpmode & OPT_TTY)) { in main()
1557 opts.o_outpmode &= ~OPT_TERMCAP; /* no termcap for pipes */ in main()
1558 opts.o_outpmode &= ~OPT_FULLSCREEN; in main()
1560 if (opts.o_outpmode & OPT_TERMCAP) in main()
1562 if (opts.o_outpmode & OPT_TERMCAP) in main()
1564 list_alloc(&lwps, opts.o_ntop); in main()
1565 list_alloc(&users, opts.o_nbottom); in main()
1566 list_alloc(&tasks, opts.o_nbottom); in main()
1567 list_alloc(&projects, opts.o_nbottom); in main()
1568 list_alloc(&zones, opts.o_nbottom); in main()
1569 list_alloc(&lgroups, opts.o_nbottom); in main()
1570 list_setkeyfunc(sortk, &opts, &lwps, LT_LWPS); in main()
1571 list_setkeyfunc(NULL, &opts, &users, LT_USERS); in main()
1572 list_setkeyfunc(NULL, &opts, &tasks, LT_TASKS); in main()
1573 list_setkeyfunc(NULL, &opts, &projects, LT_PROJECTS); in main()
1574 list_setkeyfunc(NULL, &opts, &zones, LT_ZONES); in main()
1575 list_setkeyfunc(NULL, &opts, &lgroups, LT_LGRPS); in main()
1576 if (opts.o_outpmode & OPT_TERMCAP) in main()
1580 if (opts.o_outpmode & OPT_TTY) { in main()
1582 if (!(opts.o_outpmode & OPT_TERMCAP)) in main()
1589 timeout = opts.o_interval * MILLISEC; in main()
1608 if (opts.o_outpmode & OPT_FULLSCREEN) in main()
1618 list_alloc(&lwps, opts.o_ntop); in main()
1619 list_alloc(&users, opts.o_nbottom); in main()
1620 list_alloc(&tasks, opts.o_nbottom); in main()
1621 list_alloc(&projects, opts.o_nbottom); in main()
1622 list_alloc(&zones, opts.o_nbottom); in main()
1632 if ((opts.o_outpmode & OPT_PSINFO) || in main()
1633 (opts.o_outpmode & OPT_MSACCT)) { in main()
1637 if (opts.o_outpmode & OPT_USERS) { in main()
1643 if (opts.o_outpmode & OPT_TASKS) { in main()
1649 if (opts.o_outpmode & OPT_PROJECTS) { in main()
1655 if (opts.o_outpmode & OPT_ZONES) { in main()
1661 if (opts.o_count == 1) in main()
1669 if (opts.o_outpmode & OPT_TTY) { in main()
1677 (void) sleep(opts.o_interval); in main()
1679 } while (opts.o_count == (-1) || --opts.o_count); in main()
1681 if (opts.o_outpmode & OPT_TTY) in main()