Home
last modified time | relevance | path

Searched refs:cols (Results 1 – 25 of 80) sorted by relevance

1234

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dfold.c94 cols[0] = 0; in fold()
154 if(cols[' ']) in fold()
180 memset(cols, 0, sizeof(cols)); in b_fold()
181 cols['\t'] = T_TAB; in b_fold()
182 cols['\b'] = T_BS; in b_fold()
183 cols['\n'] = T_NL; in b_fold()
184 cols['\r'] = T_RET; in b_fold()
190 cols['\r'] = cols['\b'] = 0; in b_fold()
191 cols['\t'] = cols[' ']; in b_fold()
198 cols[n] = T_SP; in b_fold()
[all …]
/illumos-gate/usr/src/lib/libeti/menu/common/
H A Dmenuformat.c41 if (rows < 0 || cols < 0) { in set_menu_format()
51 if (cols == 0) { in set_menu_format()
52 cols = FCols(m); in set_menu_format()
63 FCols(m) = cols; in set_menu_format()
64 Cols(m) = min(cols, Nitems(m)); in set_menu_format()
65 Rows(m) = (Nitems(m)-1) / cols + 1; in set_menu_format()
75 if (cols > 0) { in set_menu_format()
76 FCols(Dfl_Menu) = cols; in set_menu_format()
83 menu_format(MENU *m, int *rows, int *cols) in menu_format() argument
87 *cols = FCols(m); in menu_format()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastwinsize.c72 astwinsize(int fd, register int* rows, register int* cols) in astwinsize() argument
81 if (cols) *cols = ws.ws_col; in astwinsize()
92 if (cols) *cols = ts.ts_cols; in astwinsize()
103 if (cols) *cols = ws.bytesx; in astwinsize()
113 if (cols) *cols = (s = getenv("COLUMNS")) ? strtol(s, NiL, 0) : 0; in astwinsize()
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dform.c142 int xmax = f->fcol + f->cols; in merge()
147 if (form->cols < xmax) in merge()
148 form->cols = xmax; in merge()
165 form->cols = 0; in disconnect_fields()
311 *cols = f->cols; in scale_form()
339 int cols = c->cols; in data_ahead() local
342 int flag = cols > MAX_BUF - 1; in data_ahead()
347 bptr = malloc(cols + 1); in data_ahead()
351 start = B(f) + cols; in data_ahead()
363 start += cols; in data_ahead()
[all …]
H A Dfield.c144 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument
156 if (rows > 0 && cols > 0 && frow >= 0 && fcol >= 0 && nrow >= 0 && in new_field()
161 f->cols = cols; in new_field()
165 f->dcols = cols; in new_field()
208 f->cols = field->cols; in dup_field()
259 f->cols = field->cols; in link_field()
312 field_info(FIELD *f, int *rows, int *cols, int *frow, int *fcol, in field_info() argument
327 *cols = f->cols; in field_info()
H A Dchg_char.c42 #define OffscreenCols(c) ((c)->dcols - (c)->cols)
117 if (OneRow(c) && c->dcols != c->cols) { in _next_word()
124 if (t - (Buf(c) + B(f)) > c->cols) { in _next_word()
125 if (t - v > c->cols) { in _next_word()
129 B(f) = (int) (t - (Buf(c) + c->cols)); in _next_word()
394 int n = c -> cols < m ? c -> cols : m; in _scr_hfline()
410 int n = c -> cols < m ? c -> cols : m; in _scr_hbline()
426 int h = (c->cols + 1)/2; in _scr_hfhalf()
443 int h = (c->cols + 1)/2; in _scr_hbhalf()
H A Dutility.c39 (f)->dcols > (f)->cols)
47 f->dcols == f->cols)
191 int xmax = B(f) + c->cols; in _update_current()
196 B(f) = X(f) - c->cols + 1; in _update_current()
199 c->fcol, c->frow, c->fcol + c->cols - 1, in _update_current()
232 c -> fcol + c -> cols - 1, FALSE); in _update_current()
257 x = (f -> cols - n) / 2; in justify()
260 x = f -> cols - n; in justify()
409 f -> fcol, f -> rows - 1, f -> cols - 1, in _sync_attrs()
456 if (onerow && f->cols == f->dcols && in _sync_opts()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_entry.cc98 entry_col *cols, *newcols = NULL; in copy_entry() local
113 cols = old->en_cols.en_cols_val; in copy_entry()
125 newcols[j].ec_flags = cols[j].ec_flags; in copy_entry()
127 cols[j].ec_value.ec_value_len; in copy_entry()
141 cols[j].ec_value.ec_value_val, in copy_entry()
155 entry_col *cols; in free_entry() local
159 cols = obj->en_cols.en_cols_val; in free_entry()
161 if (cols[i].ec_value.ec_value_val != NULL) in free_entry()
162 delete cols[i].ec_value.ec_value_val; in free_entry()
163 if (cols) in free_entry()
[all …]
H A Ddb_scheme.cc173 db_key_desc * cols = keys.keys_val; in clear_columns() local
175 if (cols) { in clear_columns()
177 if (cols[j].key_name) in clear_columns()
178 delete cols[j].key_name; in clear_columns()
180 delete cols; in clear_columns()
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_term.c181 if (tp->tbl.cols == NULL) { in term_tbl()
198 coloff += tp->tbl.cols[ic].width; in term_tbl()
210 tsz += tp->tbl.cols[ic].width + in term_tbl()
211 tp->tbl.cols[ic].spacing; in term_tbl()
212 if (sp->opts->cols) in term_tbl()
213 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl()
263 if (ic + 1 < sp->opts->cols) in term_tbl()
486 if (tp->tbl.cols[ic].spacing) in term_tbl()
568 assert(tp->tbl.cols); in term_tbl()
569 free(tp->tbl.cols); in term_tbl()
[all …]
H A Dout.c133 assert(tbl->cols == NULL); in tblcalc()
134 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc()
154 col = tbl->cols + icol; in tblcalc()
185 / (sp->opts->cols + 1) : 0); in tblcalc()
218 tbl->cols[icol].spacing = 3; in tblcalc()
229 width = tbl->cols[icol].width; in tblcalc()
231 width += tbl->cols[icol].spacing; in tblcalc()
326 tbl->cols[icol].width = wanted; in tblcalc()
340 col = tbl->cols + icol; in tblcalc()
363 col = tbl->cols + icol; in tblcalc()
[all …]
H A Dtbl_html.c84 if (h->tbl.cols == NULL) { in html_tblopen()
251 assert(h->tbl.cols); in print_tbl()
252 free(h->tbl.cols); in print_tbl()
253 h->tbl.cols = NULL; in print_tbl()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcmore.c45 int cols; /* max cols */ member
195 if (++more->col <= more->cols || s < e && *s == '\n')
303 int sfdcmore(Sfio_t* f, const char* prompt, int rows, int cols) in sfdcmore() argument
305 int sfdcmore(f, prompt, rows, cols) in sfdcmore()
309 int cols;
332 if (!rows || !cols)
335 astwinsize(sffileno(sfstdin), &rows, &cols);
339 if (!cols)
340 cols = 80;
343 more->cols = cols;
/illumos-gate/usr/src/cmd/beadm/
H A Dbeadm.c87 struct col_info cols[NUM_COLS]; member
263 len[i] = hdr->cols[i].width; in count_widths()
332 hdr->cols[i].width = len[i]; in count_widths()
395 hdr->cols[0].width, name, in print_be_nodes()
399 hdr->cols[3].width, buf, in print_be_nodes()
432 if (hdr->cols[1].width != 0) in print_be_snapshots()
449 if (hdr->cols[1].width != 0) in print_be_snapshots()
453 hdr->cols[1].width, "-", in print_be_snapshots()
454 hdr->cols[2].width, "-", in print_be_snapshots()
455 hdr->cols[3].width, buf, in print_be_snapshots()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dfm.c185 if (c + width >= cols) { in fm_printf()
198 return ((c + width) % cols); in fm_printf()
238 c = fm_printf(d + 1, c, cols, " 1"); in fm_nvprintr()
283 c = fm_printf(d + 1, c, cols, "%llx", in fm_nvprintr()
289 c = fm_printf(d + 1, c, cols, "%llx", in fm_nvprintr()
295 c = fm_printf(d + 1, c, cols, "%llx", in fm_nvprintr()
306 c = fm_printf(d + 1, c, cols, "["); in fm_nvprintr()
308 c = fm_nvprintr(cnv, d + 1, c, cols); in fm_nvprintr()
309 c = fm_printf(d + 1, c, cols, " ]"); in fm_nvprintr()
316 c = fm_printf(d + 1, c, cols, "["); in fm_nvprintr()
[all …]
/illumos-gate/usr/src/cmd/stat/arcstat/
H A Darcstat.pl58 my %cols = (# HDR => [Size, Scale, Description]
119 foreach my $hdr (keys %cols) {
120 print STDERR sprintf("%11s : %s\n", $hdr, $cols{$hdr}[2]);
184 if (not exists($cols{$ele})) {
263 printf("%s%s", prettynum($cols{$col}[0], $cols{$col}[1],
275 printf("%*s%s", $cols{$col}[0], $col, $sep);
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Defi_console.c191 UINTN cols, rows; in plat_tem_get_prom_size() local
194 &cols, &rows); in plat_tem_get_prom_size()
196 *width = (size_t)cols; in plat_tem_get_prom_size()
210 UINTN cols, rows; in plat_cons_update_mode() local
230 &cols, &rows); in plat_cons_update_mode()
232 devinit.width = cols; in plat_cons_update_mode()
235 devinit.linebytes = cols; in plat_cons_update_mode()
276 UINTN cols, rows; in efi_text_devinit() local
283 data->width = cols; in efi_text_devinit()
286 data->linebytes = cols; in efi_text_devinit()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/cmd/scripts/
H A Ddtfailures.ksh36 cols=$(expr `tput cols` - 47)
37 details=`tail -1 $dir/*.err | cut -c1-$cols`
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_test/
H A Dmdb_test.c302 size_t rows, size_t cols, size_t ocols) in do_nputs_tests() argument
317 mdb_iob_resize(mdb.m_out, rows, cols); in do_nputs_tests()
333 size_t cols = mdb.m_out->iob_cols; in cmd_nputs() local
339 addr = cols; in cmd_nputs()
342 0, rows, addr, cols); in cmd_nputs()
345 MDB_IOB_AUTOWRAP, rows, addr, cols); in cmd_nputs()
348 MDB_IOB_INDENT, rows, addr, cols); in cmd_nputs()
351 MDB_IOB_AUTOWRAP | MDB_IOB_INDENT, rows, addr, cols); in cmd_nputs()
/illumos-gate/usr/src/boot/sys/boot/common/linenoise/
H A Dlinenoise.c132 size_t cols; /* Number of columns in terminal. */ member
345 while((plen+pos) >= l->cols) { in refreshSingleLine()
350 while (plen+len > l->cols) { in refreshSingleLine()
379 int rows = (plen+l->len+l->cols)/l->cols; /* rows used by current buf. */ in refreshMultiLine()
380 int rpos = (plen+l->oldpos+l->cols)/l->cols; /* cursor relative row. */ in refreshMultiLine()
416 (l->pos+plen) % l->cols == 0) in refreshMultiLine()
426 rpos2 = (plen+l->pos+l->cols)/l->cols; /* current cursor relative row. */ in refreshMultiLine()
435 col = (plen+(int)l->pos) % (int)l->cols; in refreshMultiLine()
468 if ((!mlmode && l->plen+l->len < l->cols) /* || mlmode */) { in linenoiseEditInsert()
611 l.cols = getColumns(); in linenoiseEdit()
/illumos-gate/usr/src/lib/libeti/panel/common/
H A Dnew.c69 int lines, cols; in new_panel() local
79 getmaxyx(window, lines, cols); in new_panel()
81 panel -> wendx = panel->wstartx + cols - 1; in new_panel()
/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_console.c909 int y, rows, cols; in btem_control() local
912 cols = fb_info.cursor.pos.x; in btem_control()
917 bcons_dev.bd_setpos(rows, cols - 1); in btem_control()
921 cols += 8 - (cols % 8); in btem_control()
922 if (cols >= fb_info.terminal.x) in btem_control()
923 cols = fb_info.terminal.x - 1; in btem_control()
924 bcons_dev.bd_setpos(rows, cols); in btem_control()
967 int rows, cols; in btem_chkparam() local
970 cols = fb_info.cursor.pos.x; in btem_chkparam()
979 bcons_dev.bd_setpos(rows - btem->btem_params[0], cols); in btem_chkparam()
[all …]
/illumos-gate/usr/src/common/ficl/
H A Dmain.c94 int cols = 80, rows = 24; in main() local
98 cols = ws.ws_col; in main()
104 asprintf(&buffer, "%d", cols); in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_001_pos.ksh102 cols=$(echo $line | awk '{print NF}')
110 elif [[ "$opt" == "-p" ]] && ((cols != 4)); then
112 "$cols columns instead of 4."
/illumos-gate/usr/src/cmd/ptools/pflags/
H A Dpflags.c592 int cols = is64? 2 : 4; in dumpregs() local
605 if ((i+1) % cols == 0) in dumpregs()
608 if (i % cols != 0) in dumpregs()
617 int gr, xr, cols = 2; in dumpregs_v8p() local
630 if ((gr + 1) % cols == 0) in dumpregs_v8p()
638 if ((gr + 1) % cols == 0) in dumpregs_v8p()
645 if ((gr + 1) % cols == 0) in dumpregs_v8p()
649 if (gr % cols != 0) in dumpregs_v8p()

1234