| /illumos-gate/usr/src/cmd/rcap/rcapstat/ |
| H A D | rcapstat.c | 51 typedef struct col { struct 66 struct col *col_next; argument 67 struct col *col_prev; argument 78 col_t *col; in col_find() local 79 for (col = col_head; col != NULL; col = col->col_next) in col_find() 80 if (col->col_id.rcid_type == id.rcid_type && in col_find() 81 col->col_id.rcid_val == id.rcid_val) in col_find() 82 return (col); in col_find() 107 col_remove(col_t *col) in col_remove() argument 109 if (col->col_prev != NULL) in col_remove() [all …]
|
| /illumos-gate/usr/src/cmd/format/ |
| H A D | add_definition.c | 63 static int add_entry(int col, FILE *fd, char *format, ...); 187 int col; in add_disktype() local 194 col = add_entry(0, fd, " : ctlr = %s", in add_disktype() 197 col = add_entry(col, fd, " : ncyl = %d", disk_type->dtype_ncyl); in add_disktype() 199 col = add_entry(col, fd, " : acyl = %d", disk_type->dtype_acyl); in add_disktype() 201 col = add_entry(col, fd, " : pcyl = %d", disk_type->dtype_pcyl); in add_disktype() 203 col = add_entry(col, fd, " : nhead = %d", disk_type->dtype_nhead); in add_disktype() 206 col = add_entry(col, fd, " : phead = %d", in add_disktype() 210 col = add_entry(col, fd, " : nsect = %d", disk_type->dtype_nsect); in add_disktype() 213 col = add_entry(col, fd, " : psect = %d", in add_disktype() [all …]
|
| /illumos-gate/usr/src/cmd/mandoc/ |
| H A D | out.c | 124 struct roffcol *col; in tblcalc() local 153 icol = dp->layout->col; in tblcalc() 156 col = tbl->cols + icol; in tblcalc() 157 col->flags |= dp->layout->flags; in tblcalc() 169 if (col->width < dp->layout->width) in tblcalc() 170 col->width = dp->layout->width; in tblcalc() 172 (col->spacing == SIZE_MAX || in tblcalc() 173 col->spacing < dp->layout->spacing)) in tblcalc() 174 col->spacing = dp->layout->spacing; in tblcalc() 182 dp->hspans == 0 ? col : NULL, in tblcalc() [all …]
|
| H A D | term.c | 114 p->tcol->col = 0; in term_flushln() 167 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_flushln() 193 while (p->tcol->col < p->tcol->lastcol && in term_flushln() 194 p->tcol->buf[p->tcol->col] == ' ') in term_flushln() 195 p->tcol->col++; in term_flushln() 224 p->col = p->tcol->col = p->tcol->lastcol = 0; in term_flushln() 263 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_fill() 358 for (ic = p->tcol->col; ic < nbr; ic++) { in term_field() 408 p->tcol->col = nbr; in term_field() 632 uc = -p->col; in term_word() [all …]
|
| H A D | tbl_term.c | 292 tp->col = 0; in term_tbl() 429 if (tp->tcol->col < tp->tcol->lastcol) in term_tbl() 431 if (tp->tcol->col < tp->tcol->lastcol) in term_tbl() 498 sp->layout->last->col + 1 == sp->opts->cols) in term_tbl() 502 sp->next->layout->last->col + 1 == sp->opts->cols) in term_tbl() 506 sp->prev->layout->last->col + 1 == sp->opts->cols && in term_tbl() 513 sp->last->layout->col + 1 == sp->opts->cols) || in term_tbl() 515 sp->layout->last->col + 1 == sp->opts->cols) ? 2 : in term_tbl() 519 sp->last->layout->col + 1 == sp->opts->cols) || in term_tbl() 521 sp->layout->last->col + 1 == sp->opts->cols) ? 1 : 0; in term_tbl() [all …]
|
| /illumos-gate/usr/src/cmd/fold/ |
| H A D | fold.c | 63 static int col = 0; variable 194 if (col != 0) newline_init(); in main() 211 ncol = col + chr_width(c); in putch() 213 ncol = (col + 8) &~ 7; in putch() 217 ncol = col + chr_width(c); in putch() 219 ncol = col ? col - 1 : 0; in putch() 223 ncol = col + chr_width(c); in putch() 230 ncol = col + chr_width(c); in putch() 232 ncol = col + wcwidth(c); in putch() 269 col -= spcol; in putch() [all …]
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
| H A D | fold.c | 92 register int n, col=0, x=0; in fold() local 111 col = 0; in fold() 116 while((cp-first) > (width-col)) in fold() 119 col = last_space - first; in fold() 121 col = width-col; in fold() 122 sfwrite(out,first,col); in fold() 123 first += col; in fold() 124 col = 0; in fold() 136 col = 0; in fold() 139 if((cp+(--col)-first)>0) in fold() [all …]
|
| /illumos-gate/usr/src/cmd/ul/ |
| H A D | ul.c | 63 int col, maxcol; variable 176 if (col > 0) in ul_filter() 177 col--; in ul_filter() 181 col = (col+8) & ~07; in ul_filter() 182 if (col > maxcol) in ul_filter() 183 maxcol = col; in ul_filter() 187 col = 0; in ul_filter() 238 if (obuf[col].c_char) in ul_filter() 239 obuf[col].c_mode |= UNDERL | mode; in ul_filter() 241 obuf[col].c_char = '_'; in ul_filter() [all …]
|
| /illumos-gate/usr/src/boot/common/ |
| H A D | tem.c | 119 int count, screen_pos_t row, screen_pos_t col); 138 int count, screen_pos_t row, screen_pos_t col); 753 snprintf(buf, sizeof (buf), "%d", active->tvs_c_cursor.col); in tem_save_state() 757 snprintf(buf, sizeof (buf), "%d", active->tvs_c_cursor.col * in tem_save_state() 846 uint32_t col = 0; in tem_pix_align() local 856 plat_tem_get_prom_pos(&row, &col); in tem_pix_align() 871 tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0; in tem_pix_align() 1123 tem->tvs_c_cursor.col - 1); in tem_control() 1516 int col; in tem_chkparam() local 1519 col = tem->tvs_c_cursor.col; in tem_chkparam() [all …]
|
| /illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
| H A D | doupdate.c | 218 int col; /* Starting column of region */ member 264 cchar_t *optr = &curscr->_line[row][region.col]; in _writeRegion() 265 cchar_t *nptr = &newscr->_line[row][region.col]; in _writeRegion() 288 curscr->_curx = region.col + i + 1; in _writeRegion() 299 cchar_t *optr = &curscr->_line[row][region.col]; in _deleteRegion() 308 for (i = region.col; i < COLS - region.size; i++) { in _deleteRegion() 364 regions[iRegion].size = regions[iRegion + 1].col - in _normalizeRegions2() 365 regions[iRegion].col; in _normalizeRegions2() 367 regions[nRegions - 1].size = COLS - regions[nRegions - 1].col; in _normalizeRegions2() 411 int col; in _findRegions() local [all …]
|
| /illumos-gate/usr/src/uts/i86pc/boot/ |
| H A D | boot_vga.c | 247 int col; in vga_drawc() local 249 vga_getpos(&row, &col); in vga_drawc() 253 vga_setpos(row + 1, col); in vga_drawc() 263 VGA_SCREEN[row * VGA_TEXT_COLS + col] = (cons_color << 8) | c; in vga_drawc() 265 if (col < VGA_TEXT_COLS - 1) in vga_drawc() 266 vga_setpos(row, col + 1); in vga_drawc() 287 vga_setpos(int row, int col) in vga_setpos() argument 295 if (col < 0) in vga_setpos() 296 col = 0; in vga_setpos() 297 if (col >= fb_info.terminal.x) in vga_setpos() [all …]
|
| /illumos-gate/usr/src/boot/i386/common/ |
| H A D | cons.c | 55 getcursor(int *row, int *col) in getcursor() argument 65 if (col != NULL) in getcursor() 66 *col = v86.edx & 0xff; in getcursor() 72 int i, col; in putchar() local 79 col = 0; in putchar() 80 getcursor(NULL, &col); in putchar() 81 col = 8 - (col % 8); in putchar() 82 for (i = 0; i < col; i++) in putchar()
|
| /illumos-gate/usr/src/cmd/tip/ |
| H A D | value.c | 17 static int col = 0; variable 136 if (col > 0) { in vlex() 138 col = 0; in vlex() 189 if (col > 0 && col < MIDDLE) in vprint() 190 while (col++ < MIDDLE) in vprint() 192 col += strlen(p->v_name); in vprint() 197 col++; in vprint() 205 col++; in vprint() 208 col += strlen(cp); in vprint() 214 col += 6; in vprint() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | tem_safe.c | 141 int count, screen_pos_t row, screen_pos_t col, 464 tem->tvs_c_cursor.col - 1, in tem_safe_control() 911 int col; in tem_safe_chkparam() local 917 col = tem->tvs_c_cursor.col; in tem_safe_chkparam() 934 tem_safe_mv_cursor(tem, row - tem->tvs_params[0], col, in tem_safe_chkparam() 940 tem_safe_mv_cursor(tem, tem->tvs_params[0] - 1, col, in tem_safe_chkparam() 947 tem_safe_mv_cursor(tem, row + tem->tvs_params[0], col, in tem_safe_chkparam() 954 tem_safe_mv_cursor(tem, row, col + tem->tvs_params[0], in tem_safe_chkparam() 966 tem_safe_mv_cursor(tem, row, col - tem->tvs_params[0], in tem_safe_chkparam() 1015 tem->tvs_c_cursor.col, in tem_safe_chkparam() [all …]
|
| /illumos-gate/usr/src/cmd/tbl/ |
| H A D | t5.c | 72 table[nlin][icol].col = cstore; in gettbl() 77 table[nlin][icol].col = in gettbl() 90 (char *)maknew(table[nlin][icol].col); in gettbl() 93 table[nlin][icol].rcol = table[nlin][icol].col; in gettbl() 94 table[nlin][icol].col = ""; in gettbl() 99 table[nlin][++icol].col = ""; in gettbl() 104 table[nlin][icol].col = ""; in gettbl() 162 start = table[is][jcol].col; in permute() 166 table[--irow][jcol].col = start; in permute() 171 table[is][jcol].col= SPAN; in permute() [all …]
|
| H A D | t8.c | 48 s = table[nl][c].col; in putline() 53 if (!vspen(s=table[ip][c].col)) break; in putline() 83 if (vspen(table[nl][c].col)) vspf=1; in putline() 85 if (vspen(table[lf][c].col)) vspf=1; in putline() 96 s = table[nl][c].col; in putline() 101 if (lf>=0 && vspen(table[lf][c].col)) in putline() 130 for(lf=prev(nl); lf>=0 && vspen(table[lf][c].col); lf=prev(lf)) in putline() 140 s= table[nl][c].col; in putline() 154 if (vspen(table[ip][c].col)) in putline() 183 if (real(table[nl][c].col)) in putline() [all …]
|
| H A D | t9.c | 59 table[0][icol].col = dataln; in domore() 67 table[0][icol].rcol = maknew(table[0][icol].col); in domore() 70 table[0][icol].rcol = table[0][icol].col; in domore() 71 table[0][icol].col= ""; in domore() 75 table[0][++icol].col = ""; in domore() 79 table[0][icol].col = ""; in domore()
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
| H A D | sfdcmore.c | 47 int col; /* current col */ member 72 more->col = 1; 165 if (!more->col) 192 more->col = ((more->col + 8) & ~7) - 1; 195 if (++more->col <= more->cols || s < e && *s == '\n') 199 more->col = 1; 204 if (more->col > 1) 205 more->col--; 208 more->col = 1; 230 more->col = 1; [all …]
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | euclen.c | 78 int col = 0; in eucscol() local 82 col += 1; in eucscol() 88 col += scrw2; in eucscol() 92 col += scrw3; in eucscol() 96 col += scrw1; in eucscol() 102 return (col); in eucscol()
|
| /illumos-gate/usr/src/lib/libsqlite/tool/ |
| H A D | mkopts.tcl | 21 set col 0 23 global col 27 incr col 30 set col 0 34 global col 36 set col 0
|
| /illumos-gate/usr/src/lib/libcurses/screen/ |
| H A D | V3.upd_old_y.c | 50 int row, col, num_cols; in _update_old_y_area() local 53 for (num_cols = ncols, col = start_col; num_cols > 0; in _update_old_y_area() 54 num_cols--, col++) in _update_old_y_area() 56 win->_y16[row][col] = _TO_OCHTYPE(win->_y[row][col]); in _update_old_y_area()
|
| /illumos-gate/usr/src/cmd/stat/arcstat/ |
| H A D | arcstat.pl | 261 foreach my $col (@hdr) { 263 printf("%s%s", prettynum($cols{$col}[0], $cols{$col}[1], 264 $v{$col}), $sep); 266 printf("%d%s", $v{$col} || 0, $sep); 274 foreach my $col (@hdr) { 275 printf("%*s%s", $cols{$col}[0], $col, $sep); 279 foreach my $col (@hdr) { 280 printf("%s%s", $col, $sep);
|
| /illumos-gate/usr/src/cmd/zfs/ |
| H A D | zfs_iter.c | 159 zfs_sort_column_t *col; in zfs_add_sort_column() local 166 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column() 168 col->sc_prop = prop; in zfs_add_sort_column() 169 col->sc_reverse = reverse; in zfs_add_sort_column() 171 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column() 172 (void) strcpy(col->sc_user_prop, name); in zfs_add_sort_column() 176 col->sc_last = col; in zfs_add_sort_column() 177 *sc = col; in zfs_add_sort_column() 179 (*sc)->sc_last->sc_next = col; in zfs_add_sort_column() 180 (*sc)->sc_last = col; in zfs_add_sort_column() [all …]
|
| /illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
| H A D | doupdate.c | 236 int col, last, tail, jump, count; local 250 col = newscr->_first[row]; 251 if (col < 0) 252 col = 0; 276 optr = &curscr->_line[row][col]; 277 nptr = &newscr->_line[row][col]; 279 for (jump = -1; col < last; ) { 286 if (last <= ++col) 303 GOTO(row, col); 316 col -= count; [all …]
|
| /illumos-gate/usr/src/boot/efi/libefi/ |
| H A D | efi_console.c | 180 plat_tem_display_prom_cursor(screen_pos_t row, screen_pos_t col) in plat_tem_display_prom_cursor() argument 184 conout->SetCursorPosition(conout, col, row); in plat_tem_display_prom_cursor() 190 plat_tem_get_prom_pos(uint32_t *row, uint32_t *col) in plat_tem_get_prom_pos() argument 193 *col = (uint32_t)conout->Mode->CursorColumn; in plat_tem_get_prom_pos() 196 *col = 0; in plat_tem_get_prom_pos() 339 UINTN col, row; in efi_text_cons_copy() local 344 col = 0; in efi_text_cons_copy() 346 conout->SetCursorPosition(conout, col, row); in efi_text_cons_copy() 356 UINTN row, col; in efi_text_cons_display() local 364 (void) conout->QueryMode(conout, conout->Mode->Mode, &col, &row); in efi_text_cons_display() [all …]
|