/titanic_50/usr/src/lib/libcmd/common/ |
H A D | fold.c | 89 …id fold(Sfio_t *in, Sfio_t *out, register int width, const char *cont, size_t contsize, char *cols) in fold() argument 94 cols[0] = 0; in fold() 105 if(cols['\b']==0 && (n=sfvalue(in))<=width) in fold() 115 while((n=cols[*(unsigned char*)cp++])==0); in fold() 154 if(cols[' ']) in fold() 177 char cols[1<<CHAR_BIT]; in b_fold() local 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() [all …]
|
/titanic_50/usr/src/lib/libeti/menu/common/ |
H A D | menuformat.c | 39 set_menu_format(MENU *m, int rows, int cols) in set_menu_format() argument 41 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 [all …]
|
/titanic_50/usr/src/lib/libast/common/port/ |
H A D | astwinsize.c | 72 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()
|
/titanic_50/usr/src/lib/libeti/form/common/ |
H A D | form.c | 142 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() 302 scale_form(FORM *f, int *rows, int *cols) in scale_form() argument 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() [all …]
|
H A D | field.c | 142 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument 154 if (rows > 0 && cols > 0 && frow >= 0 && fcol >= 0 && nrow >= 0 && in new_field() 159 f->cols = cols; in new_field() 163 f->dcols = cols; in new_field() 206 f->cols = field->cols; in dup_field() 257 f->cols = field->cols; in link_field() 310 field_info(FIELD *f, int *rows, int *cols, int *frow, int *fcol, in field_info() argument 325 *cols = f->cols; in field_info()
|
H A D | chg_char.c | 42 #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 D | utility.c | 39 (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() 313 WINDOW * w = derwin(Sub(f -> form), f -> rows, f -> cols, in display_field() 339 WINDOW * w = derwin(Sub(f -> form), f -> rows, f -> cols, in erase_field() [all …]
|
H A D | llib-lform | 78 new_field(rows, cols, frow, fcol, nrow, nbuf) 80 int cols; 107 field_info(f, rows, cols, frow, fcol, nrow, nbuf) 110 int *cols; 352 scale_form(f, rows, cols) 355 int *cols;
|
/titanic_50/usr/src/lib/libnisdb/ |
H A D | db_entry.cc | 98 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 D | db_scheme.cc | 173 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()
|
/titanic_50/usr/src/cmd/mandoc/ |
H A D | tbl_html.c | 57 if (h->tbl.cols == NULL) { in html_tblopen() 67 for (ic = 0; ic < sp->opts->cols; ic++) { in html_tblopen() 69 col = h->tbl.cols + ic; in html_tblopen() 117 for (ic = 0; ic < sp->opts->cols; ic++) { in print_tbl() 136 assert(h->tbl.cols); in print_tbl() 137 free(h->tbl.cols); in print_tbl() 138 h->tbl.cols = NULL; in print_tbl()
|
H A D | tbl_term.c | 84 if (tp->tbl.cols == NULL) { in term_tbl() 97 for (ic = 0; ic < sp->opts->cols; ic++) in term_tbl() 98 tsz += tp->tbl.cols[ic].width + 3; in term_tbl() 134 for (ic = 0; ic < sp->opts->cols; ic++) { in term_tbl() 148 tbl_data(tp, sp->opts, dp, tp->tbl.cols + ic); in term_tbl() 163 if (ic + 1 == sp->opts->cols || spans) in term_tbl() 199 assert(tp->tbl.cols); in term_tbl() 200 free(tp->tbl.cols); in term_tbl() 201 tp->tbl.cols = NULL; in term_tbl() 233 tbl_char(tp, line, tp->tbl.cols[c1->col].width + 1); in tbl_hrule() [all …]
|
H A D | out.c | 123 assert(NULL == tbl->cols); in tblcalc() 124 tbl->cols = mandoc_calloc((size_t)sp->opts->cols, in tblcalc() 146 col = tbl->cols + icol; in tblcalc() 163 col = tbl->cols + icol; in tblcalc() 182 col = tbl->cols + icol; in tblcalc() 221 col = tbl->cols + icol; in tblcalc()
|
H A D | tbl_layout.c | 301 rp->last->col + 1 == tbl->opts.cols && in tbl_layout() 354 if (tbl->opts.cols <= p->col) in cell_alloc() 355 tbl->opts.cols = p->col + 1; in cell_alloc()
|
/titanic_50/usr/src/lib/libast/common/disc/ |
H A D | sfdcmore.c | 45 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;
|
/titanic_50/usr/src/cmd/beadm/ |
H A D | beadm.c | 86 struct col_info cols[NUM_COLS]; member 190 struct col_info *col_info = &hdr_info->cols[i]; in print_hdr() 208 struct col_info *col = hdr->cols; in init_hdr_cols() 265 len[i] = hdr->cols[i].width; in count_widths() 334 hdr->cols[i].width = len[i]; in count_widths() 393 hdr->cols[0].width, name, in print_be_nodes() 394 hdr->cols[1].width, active, in print_be_nodes() 395 hdr->cols[2].width, (cur_be->be_mounted ? mntpt: in print_be_nodes() 397 hdr->cols[3].width, buf, in print_be_nodes() 398 hdr->cols[4].width, cur_be->be_policy_type, in print_be_nodes() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | fm.c | 175 fm_printf(int depth, int c, int cols, const char *format, ...) in fm_printf() argument 185 if (c + width >= cols) { in fm_printf() 198 return ((c + width) % cols); in fm_printf() 213 fm_nvprintr(nvlist_t *nvl, int d, int c, int cols) in fm_nvprintr() argument 234 c = fm_printf(d, c, cols, " %s=", name); in fm_nvprintr() 238 c = fm_printf(d + 1, c, cols, " 1"); in fm_nvprintr() 243 c = fm_printf(d + 1, c, cols, b ? "1" : "0"); in fm_nvprintr() 248 c = fm_printf(d + 1, c, cols, "%x", i8); in fm_nvprintr() 253 c = fm_printf(d + 1, c, cols, "%x", i8); in fm_nvprintr() 258 c = fm_printf(d + 1, c, cols, "%x", i8); in fm_nvprintr() [all …]
|
/titanic_50/usr/src/cmd/stat/arcstat/ |
H A D | arcstat.pl | 58 my %cols = (# HDR => [Size, Scale, Description] 119 foreach my $hdr (keys %cols) { 120 print STDERR sprintf("%11s : %s\n", $hdr, $cols{$hdr}[2]); 181 if (not exists($cols{$ele})) { 260 printf("%s%s", prettynum($cols{$col}[0], $cols{$col}[1], 272 printf("%*s%s", $cols{$col}[0], $col, $sep);
|
/titanic_50/usr/src/cmd/dtrace/test/cmd/scripts/ |
H A D | dtfailures.ksh | 36 cols=$(expr `tput cols` - 47) 37 details=`tail -1 $dir/*.err | cut -c1-$cols`
|
/titanic_50/usr/src/cmd/mdb/common/modules/mdb_test/ |
H A D | mdb_test.c | 302 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()
|
/titanic_50/usr/src/lib/libeti/panel/common/ |
H A D | new.c | 69 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()
|
/titanic_50/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 592 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()
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex_subr.c | 651 int cols; local 662 if ((cols = wcwidth(c)) > 0) 663 vcntcol += cols; 665 if ((cols = wcwidth(c)) < 0) 666 cols = 0; 670 if ((mc_wrap) == 1 && (remcols = (WCOLS - (vcntcol % WCOLS))) < cols) 673 vcntcol += cols;
|
/titanic_50/usr/src/uts/common/io/ |
H A D | tem_safe.c | 1208 int cols; in tem_safe_copy_area() local 1228 cols = e_col - s_col + 1; in tem_safe_copy_area() 1230 t_col + cols > tems.ts_c_dimension.width) in tem_safe_copy_area() 1929 set_font(struct font *f, short *rows, short *cols, short height, short width) in set_font() argument 1946 (((*cols * fl->data->width) + BORDER_PIXELS) <= width)) { in set_font() 1957 ((*cols * DEFAULT_FONT_DATA.width) > width)) { in set_font() 1959 *cols = (width - 2) / DEFAULT_FONT_DATA.width; in set_font() 2265 int cols = tems.ts_c_dimension.width; in i_virtual_copy() local 2270 to_row_start = base + ((t_row * cols) + t_col); in i_virtual_copy() 2271 from_row_start = base + ((s_row * cols) + s_col); in i_virtual_copy() [all …]
|
/titanic_50/usr/src/cmd/terminfo/ |
H A D | terminfo.src | 302 cols#80, 308 cols#132, lines#66, 312 cols#80, 478 cols#80, lines#24, use=vanilla, use=ansi+erase, 485 cols#80, lines#24, use=vanilla, use=ansi+cup, 522 cols#80, it#8, lines#24, 544 cols#80, it#8, lines#24, 602 cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup, 617 cols#80, lines#25, 727 cols#80, it#8, lines#24, [all …]
|