/illumos-gate/usr/src/lib/libeti/menu/common/ |
H A D | menuformat.c | 39 set_menu_format(MENU *m, int rows, int cols) argument 41 if (rows < 0 || cols < 0) { 51 if (cols == 0) { 52 cols = FCols(m); 63 FCols(m) = cols; 64 Cols(m) = min(cols, Nitems(m)); 65 Rows(m) = (Nitems(m)-1) / cols + 1; 75 if (cols > 0) { 76 FCols(Dfl_Menu) = cols; 83 menu_format(MENU *m, int *rows, int *cols) argument [all...] |
/illumos-gate/usr/src/lib/libeti/panel/common/ |
H A D | new.c | 69 int lines, cols; local 79 getmaxyx(window, lines, cols); 81 panel -> wendx = panel->wstartx + cols - 1;
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astwinsize.c | 26 * return terminal rows and cols 72 astwinsize(int fd, register int* rows, register int* cols) argument 81 if (cols) *cols = ws.ws_col; 92 if (cols) *cols = ts.ts_cols; 103 if (cols) *cols = ws.bytesx; 113 if (cols) *cols [all...] |
/illumos-gate/usr/src/common/ficl/ |
H A D | main.c | 94 int cols = 80, rows = 24; local 98 cols = ws.ws_col; 104 asprintf(&buffer, "%d", cols);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_entry.cc | 98 entry_col *cols, *newcols = NULL; local 113 cols = old->en_cols.en_cols_val; 125 newcols[j].ec_flags = cols[j].ec_flags; 127 cols[j].ec_value.ec_value_len; 141 cols[j].ec_value.ec_value_val, 155 entry_col *cols; local 159 cols = obj->en_cols.en_cols_val; 161 if (cols[i].ec_value.ec_value_val != NULL) 162 delete cols[i].ec_value.ec_value_val; 163 if (cols) [all...] |
H A D | db_scheme.cc | 173 db_key_desc * cols = keys.keys_val; local 175 if (cols) { 177 if (cols[j].key_name) 178 delete cols[j].key_name; 180 delete cols;
|
/illumos-gate/usr/src/lib/libcmd/common/ |
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) argument 94 cols[0] = 0; 105 if(cols['\b']==0 && (n=sfvalue(in))<=width) 115 while((n=cols[*(unsigned char*)cp++])==0); 154 if(cols[' ']) 177 char cols[1<<CHAR_BIT]; local 180 memset(cols, 0, sizeof(cols)); 181 cols['\t'] = T_TAB; 182 cols['\ [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | out.h | 49 struct roffcol *cols; /* master column specifiers */ member in struct:rofftbl
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | field.c | 47 0, /* cols */ 142 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) argument 145 /* int cols; number of visible cols */ 154 if (rows > 0 && cols > 0 && frow >= 0 && fcol >= 0 && nrow >= 0 && 159 f->cols = cols; 163 f->dcols = cols; 206 f->cols = field->cols; 310 field_info(FIELD *f, int *rows, int *cols, int *frow, int *fcol, int *nrow, int *nbuf) argument [all...] |
H A D | form.c | 47 0, /* cols */ 142 int xmax = f->fcol + f->cols; 147 if (form->cols < xmax) 148 form->cols = xmax; 165 form->cols = 0; 302 scale_form(FORM *f, int *rows, int *cols) argument 311 *cols = f->cols; 339 int cols = c->cols; local [all...] |
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcmore.c | 45 int cols; /* max cols */ member in struct:__anon2611 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) argument 305 int sfdcmore(f, prompt, rows, cols) 309 int cols; 332 if (!rows || !cols) 335 astwinsize(sffileno(sfstdin), &rows, &cols); local 339 if (!cols) [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | fault.c | 75 int rows=0, cols=0; local 77 astwinsize(2,&rows,&cols); 78 if(v = cols)
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_test/ |
H A D | mdb_test.c | 302 size_t rows, size_t cols, size_t ocols) 317 mdb_iob_resize(mdb.m_out, rows, cols); 333 size_t cols = mdb.m_out->iob_cols; local 339 addr = cols; 342 0, rows, addr, cols); 345 MDB_IOB_AUTOWRAP, rows, addr, cols); 348 MDB_IOB_INDENT, rows, addr, cols); 351 MDB_IOB_AUTOWRAP | MDB_IOB_INDENT, rows, addr, cols); 301 do_nputs_tests(const char *banner, uint_t flags, size_t rows, size_t cols, size_t ocols) argument
|
/illumos-gate/usr/src/lib/libeti/menu/inc/ |
H A D | menu.h | 84 int cols; /* Number of items wide */ member in struct:MENU
|
/illumos-gate/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 592 int cols = is64? 2 : 4; local 605 if ((i+1) % cols == 0) 608 if (i % cols != 0) 617 int gr, xr, cols = 2; local 630 if ((gr + 1) % cols == 0) 638 if ((gr + 1) % cols == 0) 645 if ((gr + 1) % cols == 0) 649 if (gr % cols != 0)
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | ofmt.c | 134 int i, cols; local 143 cols = 0; 145 cols += template[i].of_width; 151 if (maxcols > 0 && cols > maxcols)
|
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/ |
H A D | boot1.c | 576 UINTN i, max_dim, best_mode, cols, rows, hsize, nhandles; local 596 status = conout->QueryMode(conout, i, &cols, &rows); 599 if (cols * rows > max_dim) { 600 max_dim = cols * rows;
|
/illumos-gate/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;
|
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | cvc.c | 1308 uint16_t cols; local 1325 CVC_CTL_SIZE(winsize_cols), (caddr_t)&cols)) != 0) || 1351 ws.ws_col = cols;
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_loader.c | 101 struct col_info cols[NUM_COLS]; member in struct:hdr_info 111 struct col_info *col_info = &hdr_info->cols[i]; 130 struct col_info *col = hdr->cols; 168 len[i] = hdr->cols[i].width + 1; 177 hdr->cols[i].width = len[i]; 206 hdr->cols[0].width, i, 207 hdr->cols[1].width, 209 hdr->cols[2].width, entry->bootfs, 210 hdr->cols[3].width, entry->title);
|
/illumos-gate/usr/src/boot/sys/boot/common/linenoise/ |
H A D | linenoise.c | 132 size_t cols; /* Number of columns in terminal. */ member in struct:linenoiseState 345 while((plen+pos) >= l->cols) { 350 while (plen+len > l->cols) { 379 int rows = (plen+l->len+l->cols)/l->cols; /* rows used by current buf. */ 380 int rpos = (plen+l->oldpos+l->cols)/l->cols; /* cursor relative row. */ 416 (l->pos+plen) % l->cols == 0) 426 rpos2 = (plen+l->pos+l->cols)/l->cols; /* curren [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/ |
H A D | main.c | 597 UINTN cols, rows; local 614 status = conout->QueryMode(conout, mode, &cols, &rows); 626 sprintf(rowenv, "%u", (unsigned)cols); 634 status = conout->QueryMode(conout, i, &cols, &rows); 637 printf("Mode %d: %u columns, %u rows\n", i, (unsigned)cols,
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acltext.c | 264 split_line(char *str, int cols) argument 280 if ((i + pad_len + 4) >= cols) { 1073 ace_printacl(acl_t *aclp, int cols, int compact) argument 1097 split_line(token, cols - 5); 1109 * for ace_t ACL's the cols variable will break up 1114 acl_printacl(acl_t *aclp, int cols, int compact) argument 1122 ace_printacl(aclp, cols, compact);
|
/illumos-gate/usr/src/lib/libshell/common/edit/ |
H A D | edit.c | 513 int rows,cols; local 516 cols = (int)strtol(cp, (char**)0, 10)-1; 519 astwinsize(2,&rows,&cols); 520 if(--cols <0) 521 cols = DFLTWINDOW-1; 523 if(cols < MINWINDOW) 524 cols = MINWINDOW; 525 else if(cols > MAXWINDOW) 526 cols = MAXWINDOW; 527 return(cols); [all...] |
/illumos-gate/usr/src/lib/libeti/form/inc/ |
H A D | form.h | 79 int cols; /* size in cols */ member in struct:fieldnode 83 int dcols; /* dynamic cols */ 113 int cols; /* size in cols */ member in struct:formnode
|