Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/lib/libcmd/common/
H A Dfold.c89 …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_41/usr/src/lib/libeti/menu/common/
H A Dmenuformat.c39 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_41/usr/src/lib/libast/common/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()
/titanic_41/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()
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 Dfield.c142 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 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()
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 Dllib-lform78 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_41/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()
/titanic_41/usr/src/lib/libast/common/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;
/titanic_41/usr/src/cmd/beadm/
H A Dbeadm.c81 struct col_info cols[NUM_COLS]; member
185 struct col_info *col_info = &hdr_info->cols[i]; in print_hdr()
203 struct col_info *col = hdr->cols; in init_hdr_cols()
286 len[i] = hdr->cols[i].width; in count_widths()
355 hdr->cols[i].width = len[i]; in count_widths()
414 hdr->cols[0].width, name, in print_be_nodes()
415 hdr->cols[1].width, active, in print_be_nodes()
416 hdr->cols[2].width, (cur_be->be_mounted ? mntpt: in print_be_nodes()
418 hdr->cols[3].width, buf, in print_be_nodes()
419 hdr->cols[4].width, cur_be->be_policy_type, in print_be_nodes()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dfm.c175 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_41/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]);
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_41/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`
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_raid.c74 if (raidp->cols.cols_val != NULL) { in meta_free_raid()
75 assert(raidp->cols.cols_len > 0); in meta_free_raid()
76 Free(raidp->cols.cols_val); in meta_free_raid()
128 raidp->cols.cols_len = ncol; in meta_get_raid_common()
129 raidp->cols.cols_val = Zalloc(raidp->cols.cols_len * in meta_get_raid_common()
130 sizeof (*raidp->cols.cols_val)); in meta_get_raid_common()
159 md_raidcol_t *mdrcp = &raidp->cols.cols_val[col]; in meta_get_raid_common()
278 for (col = 0; (col < raidp->cols.cols_len); ++col) { in in_raid()
279 md_raidcol_t *cp = &raidp->cols.cols_val[col]; in in_raid()
414 for (col = 0; (col < raidp->cols.cols_len); ++col) { in raid_print()
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/mandoc/
H A Dtbl_html.c70 col = &h->tbl.cols[hp->ident]; in html_tblopen()
137 assert(h->tbl.cols); in print_tbl()
138 free(h->tbl.cols); in print_tbl()
139 h->tbl.cols = NULL; in print_tbl()
H A Dout.c154 assert(NULL == tbl->cols); in tblcalc()
155 tbl->cols = mandoc_calloc in tblcalc()
156 ((size_t)sp->opts->cols, sizeof(struct roffcol)); in tblcalc()
174 col = &tbl->cols[dp->layout->head->ident]; in tblcalc()
H A Dtbl_term.c144 col = &tp->tbl.cols[hp->ident]; in term_tbl()
182 assert(tp->tbl.cols); in term_tbl()
183 free(tp->tbl.cols); in term_tbl()
184 tp->tbl.cols = NULL; in term_tbl()
202 width = tp->tbl.cols[hp->ident].width; in tbl_rulewidth()
354 width += tp->tbl.cols[hp->ident].width + 3; in tbl_literal()
/titanic_41/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()
/titanic_41/usr/src/cmd/vi/port/
H A Dex_subr.c651 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_41/usr/src/uts/common/io/
H A Dtem_safe.c1208 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_41/usr/src/cmd/terminfo/
H A Dterminfo.src302 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 …]

123