Home
last modified time | relevance | path

Searched refs:colwidth (Results 1 – 5 of 5) sorted by relevance

/src/bin/ls/
H A Dprint.c310 int colwidth; in printcol() local
341 colwidth = dp->maxlen; in printcol()
343 colwidth += dp->s_inode + 1; in printcol()
345 colwidth += dp->s_block + 1; in printcol()
347 colwidth += 1; in printcol()
349 colwidth = (colwidth + tabwidth) & ~(tabwidth - 1); in printcol()
350 if (termwidth < 2 * colwidth) { in printcol()
354 numcols = termwidth / colwidth; in printcol()
366 endcol = colwidth; in printcol()
385 endcol += colwidth; in printcol()
/src/contrib/mandoc/
H A Dout.c127 size_t *colwidth; /* Widths of all columns. */ in tblcalc() local
267 colwidth = mandoc_reallocarray(NULL, maxcol + 1, sizeof(*colwidth)); in tblcalc()
276 colwidth[icol] = SIZE_MAX; in tblcalc()
279 colwidth[icol] = tbl->cols[icol].width; in tblcalc()
288 width = colwidth[icol]; in tblcalc()
306 if (colwidth[icol] == min1) in tblcalc()
323 if (colwidth[icol] != min1) in tblcalc()
340 free(colwidth); in tblcalc()
/src/contrib/nvi/common/
H A Doptions.c811 int base, b_num, cnt, col, colwidth, curlen, s_num; in opts_dump() local
826 colwidth = sp->cols / numcols & ~(STANDARD_TAB - 1); in opts_dump()
827 if (colwidth >= 10) { in opts_dump()
828 colwidth = in opts_dump()
829 (colwidth + STANDARD_TAB) & ~(STANDARD_TAB - 1); in opts_dump()
830 numcols = sp->cols / colwidth; in opts_dump()
833 colwidth = 0; in opts_dump()
898 if (curlen <= colwidth - 2) in opts_dump()
920 (int)(colwidth - cnt), ""); in opts_dump()
/src/usr.bin/systat/
H A Diostat.c348 histogram(long double val, int colwidth, double scale) in histogram() argument
354 k = MIN(v, colwidth); in histogram()
355 if (v > colwidth) { in histogram()
/src/contrib/nvi/vi/
H A Dv_txt.c2131 size_t base, cnt, col, colwidth, numrows, numcols, prefix, row; in txt_fc_col() local
2160 for (ac = argc, av = argv, colwidth = 0; ac > 0; --ac, ++av) { in txt_fc_col()
2163 if (col > colwidth) in txt_fc_col()
2164 colwidth = col; in txt_fc_col()
2166 colwidth += COL_OFF(colwidth, 6); in txt_fc_col()
2183 if (colwidth >= sp->cols) { in txt_fc_col()
2197 numcols = (sp->cols - 1) / colwidth; in txt_fc_col()
2218 "%*s", (int)(colwidth - cnt), ""); in txt_fc_col()