Lines Matching refs:width
148 int width; /* width of field */
160 int width;
165 /* fname header width minwidth */
407 * calculate width of pid fields based on configured MAXPID
416 fname[F_PID].width = fname[F_PPID].width = pidwidth;
417 fname[F_PGID].width = fname[F_SID].width = pidwidth;
421 * Specify the printf format with width and precision for
429 fname[F_STIME].width = fname[F_STIME].minwidth = len;
804 f->width, f->header);
810 * Print these headers full width
815 f->width, f->header);
823 f->width, f->header);
1153 int width = 0;
1171 width = strlen(header);
1172 s = header + width;
1201 if (width == 0)
1202 width = df->width;
1205 f->width = max(width, df->minwidth);
1535 int width = fname[F_STIME].width;
1537 prtime(psinfo->pr_lwp.pr_start, width + 1, 1);
1539 prtime(psinfo->pr_start, width + 1, 1);
1602 prtpct(ushort_t pct, int width)
1609 if ((width -= 2) < 2)
1610 width = 2;
1611 (void) printf("%*u.%u", width, value / 10, value % 10);
1615 print_time(time_t tim, int width)
1624 (void) printf("%*s", width, "-");
1646 (void) printf("%*s", width, buf);
1652 int width = f->width;
1674 (void) printf("%*s ", width, "ERROR");
1675 else if (Wflg && nw > width)
1676 (void) wprintf(L"%.*s%c", width - 1,
1679 (void) wprintf(L"%*s", width, pwd->pw_name);
1682 (psinfo->pr_uid)) > width)
1684 (void) printf("%*u%c", width - 1,
1687 (void) printf("%*u", width, psinfo->pr_uid);
1696 (void) printf("%*s ", width, "ERROR");
1697 else if (Wflg && nw > width)
1698 (void) wprintf(L"%.*s%c", width - 1,
1701 (void) wprintf(L"%*s", width, pwd->pw_name);
1704 (psinfo->pr_euid)) > width)
1706 (void) printf("%*u%c", width - 1,
1709 (void) printf("%*u", width, psinfo->pr_euid);
1714 (void) printf("%*s", width, grp->gr_name);
1716 (void) printf("%*u", width, psinfo->pr_gid);
1720 (void) printf("%*s", width, grp->gr_name);
1722 (void) printf("%*u", width, psinfo->pr_egid);
1725 (void) printf("%*u", width, psinfo->pr_uid);
1728 (void) printf("%*u", width, psinfo->pr_euid);
1731 (void) printf("%*u", width, psinfo->pr_gid);
1734 (void) printf("%*u", width, psinfo->pr_egid);
1737 (void) printf("%*d", width, (int)psinfo->pr_pid);
1740 (void) printf("%*d", width, (int)psinfo->pr_ppid);
1743 (void) printf("%*d", width, (int)psinfo->pr_pgid);
1746 (void) printf("%*d", width, (int)psinfo->pr_sid);
1750 (void) printf("%*s", width, "-");
1752 (void) printf("%*d", width, psinfo->pr_lwp.pr_bindpro);
1755 (void) printf("%*d", width, (int)psinfo->pr_lwp.pr_lwpid);
1758 (void) printf("%*d", width, psinfo->pr_nlwp + psinfo->pr_nzomb);
1762 (void) printf("%*s", width, "-");
1764 (void) printf("%*d", width, psinfo->pr_lwp.pr_oldpri);
1768 (void) printf("%*s", width, "-");
1770 (void) printf("%*d", width, psinfo->pr_lwp.pr_pri);
1774 if (width < 8)
1775 mask >>= (8 - width) * 4;
1776 (void) printf("%*lx", width, psinfo->pr_flag & mask);
1779 (void) printf("%*c", width, psinfo->pr_lwp.pr_sname);
1783 (void) printf("%*s", width, "-");
1785 (void) printf("%*d", width, psinfo->pr_lwp.pr_cpu);
1789 (void) printf("%*s", width, "-");
1791 prtpct(psinfo->pr_lwp.pr_pctcpu, width);
1793 prtpct(psinfo->pr_pctcpu, width);
1796 prtpct(psinfo->pr_pctmem, width);
1799 (void) printf("%*lu", width,
1803 (void) printf("%*lu", width, (ulong_t)psinfo->pr_size);
1806 (void) printf("%*lu", width, (ulong_t)psinfo->pr_rssize);
1811 (void) printf("%*s", width, "-");
1813 (void) printf("%*d", width, psinfo->pr_lwp.pr_nice);
1815 (void) printf("%*.*s", width, width,
1820 (void) printf("%*s", width, "-");
1822 (void) printf("%*.*s", width, width,
1827 prtime(psinfo->pr_lwp.pr_start, width, 0);
1829 prtime(psinfo->pr_start, width, 0);
1834 width);
1836 print_time(delta_secs(&psinfo->pr_start), width);
1848 print_time(cputime, width);
1851 (void) printf("%-*s", width, ttyp);
1855 (void) printf("%*s", width, "-");
1857 (void) printf("%*lx", width,
1860 (void) printf("%*lx", width, (long)psinfo->pr_addr);
1864 (void) printf("%*lx", width,
1867 (void) printf("%*.*s", width, width, "-");
1871 * Print full width unless this is the last output format.
1875 (void) printf("%-*s", width, "<defunct>");
1880 wcnt = namencnt(psinfo->pr_fname, 16, width);
1882 (void) printf("%-*.*s", width, wcnt, psinfo->pr_fname);
1889 (void) printf("%-*s", width, "<defunct>");
1905 (void) printf("%-*s", width, "<defunct>");
1927 wcnt = namencnt(psinfo->pr_psargs, PRARGSZ, width);
1929 * Print full width unless this is the last format.
1932 (void) printf("%-*.*s", width, wcnt,
1941 (void) printf("%*d", width, (int)psinfo->pr_taskid);
1944 (void) printf("%*d", width, (int)psinfo->pr_projid);
1954 ((int)psinfo->pr_projid)) > width)
1955 (void) printf("%.*d%c", width - 1,
1958 (void) printf("%*d", width,
1966 (void) printf("%*s ", width, "---");
1968 (void) printf("%*s ", width, "ERROR");
1969 else if (Wflg && nw > width)
1970 (void) wprintf(L"%.*s%c", width - 1,
1973 (void) wprintf(L"%*s", width,
1980 (void) printf("%*s", width, "-");
1982 (void) printf("%*d", width, psinfo->pr_lwp.pr_bindpset);
1985 (void) printf("%*d", width, (int)psinfo->pr_zoneid);
1994 ((int)psinfo->pr_zoneid)) > width)
1995 (void) printf("%.*d%c", width - 1,
1998 (void) printf("%*d", width,
2005 (void) printf("%*s ", width, "ERROR");
2006 else if (Wflg && nw > width)
2007 (void) wprintf(L"%.*s%c", width - 1,
2010 (void) wprintf(L"%*s", width, zonename);
2016 (void) printf("%*s", width, "-");
2018 (void) printf("%*ld", width, (long)psinfo->pr_contract);
2022 (void) printf("%*d", width, (int)psinfo->pr_lwp.pr_lgrp);
2026 (void) printf("%*s", width,
2036 int width = f->width;
2043 * Print full width unless this is the last output format.
2045 wcnt = min(width, sizeof ("<defunct>"));
2047 (void) printf("%-*.*s", width, wcnt, "<defunct>");
2061 (void) printf("%*s", width, "-");
2069 (void) printf("%*d", width, 0);
2227 prtime(timestruc_t st, int width, int old)
2262 (void) printf("%*.*s", width, width, sttim);
2369 int width = fname[F_STIME].width;
2370 (void) printf(" %*.*s", width, width, "-"); /* STIME */