/titanic_51/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | fold.c | 89 static void 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['\ in b_fold() [all...] |
/titanic_51/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_51/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_51/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astwinsize.c | 26 * return terminal rows and cols 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 in astwinsize() [all...] |
/titanic_51/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_51/usr/src/lib/libeti/form/common/ |
H A D | form.c | 47 0, /* cols */ 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 [all...] |
H A D | field.c | 47 0, /* cols */ 142 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument 145 /* int cols; number of visible cols */ in new_field() 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() 310 field_info(FIELD * f,int * rows,int * cols,int * frow,int * fcol,int * nrow,int * nbuf) field_info() argument [all...] |
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() 388 /* _scr_hfline - horizontal scroll forward one line(C(f)->cols) */ 394 int n = c -> cols < m ? c -> cols : m; in _scr_hfline() 404 /* _scr_hbline - horizontal scroll backward one line(C(f)->cols) */ 410 int n = c -> cols < in _scr_hbline() [all...] |
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...] |
/titanic_51/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_51/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[c 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()
|
/titanic_51/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_51/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcmore.c | 45 int cols; /* max cols */ member 195 if (++more->col <= more->cols || s < e && *s == '\n') 298 * if rows==0 or cols==0 then they are deterimined from the tty 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) [all...] |
/titanic_51/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[ in print_be_nodes() [all...] |
/titanic_51/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, " in fm_nvprintr() [all...] |
/titanic_51/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_51/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_51/usr/src/boot/sys/boot/efi/libefi/ |
H A D | libefi.c | 92 UINTN i, max_dim, best_mode, cols, rows; in efi_main() local 109 status = conout->QueryMode(conout, i, &cols, &rows); in efi_main() 112 if (cols * rows > max_dim) { in efi_main() 113 max_dim = cols * rows; in efi_main() 130 status = conout->QueryMode(conout, best_mode, &cols, &rows); in efi_main() 138 snprintf(buf, sizeof (buf), "%u", (unsigned)cols); in efi_main()
|
/titanic_51/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_51/usr/src/boot/sys/boot/common/linenoise/ |
H A D | linenoise.c | 132 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; /* curren in refreshMultiLine() [all...] |
/titanic_51/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_51/usr/src/common/ficl/ |
H A D | main.c | 94 int cols = 80, rows = 24; in main() local 98 cols = ws.ws_col; in main() 104 asprintf(&buffer, "%d", cols); in main()
|