/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | m_cc.c | 310 width = 1; in __m_mbs_cc() 431 if (0 < width) in __m_cc_sort() 439 width = j; in __m_cc_sort() 455 return (width); in __m_cc_sort() 518 int i, width; in __m_cc_replace() local 523 if (width <= 0) in __m_cc_replace() 530 if (0 < width && w->_maxx < x + width) { in __m_cc_replace() 577 return (width); in __m_cc_replace() 672 x += width; in __m_cc_add() 717 x += width; in __m_cc_add_k() [all …]
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_printf.c | 100 int b, c, i, pad, width, ells; in _doprint() local 106 width = 0; in _doprint() 120 for (width = 0; c >= '0' && c <= '9'; c = *fmt++) in _doprint() 121 width = (width * 10) + (c - '0'); in _doprint() 139 width--; in _doprint() 168 _printn(ul, b, width, pad, emit, bp); in _doprint() 201 _printn(uint64_t n, int b, int width, int pad, void (*emit)(char, char **), in _printn() argument 211 width--; in _printn() 213 while (width-- > 0) in _printn()
|
/illumos-gate/usr/src/boot/common/ |
H A D | gfx_fb.c | 968 uint32_t width, height; in gfx_fb_cons_clear() local 1156 width = da->width; in gfx_fb_cons_display() 1162 bitmap_cpy(BltBuffer, &data[y * width], width); in gfx_fb_cons_display() 1262 width = ca->width; in gfx_fb_display_cursor() 1356 width = wd; in gfx_fb_line() 1413 width = wd; in gfx_fb_bezier() 1479 int width, i; in gfx_term_drawrect() local 1622 ux2 = ux1 + png->width; in gfx_fb_putimage() 1688 da.width = fwidth; in gfx_fb_putimage() 2472 if (rp->width > 0 && rp->width <= EDID_MAX_PIXELS && in gfx_get_edid_resolution() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | getprm.c | 55 int width; local 59 while ((width = mbtowc(&ch, s, MB_CUR_MAX)) && 62 while (width--) 65 s += width; 71 while ((width = mbtowc(&ch, s, MB_CUR_MAX)) && ch) { 83 width = mbtowc(&ch, s+1, MB_CUR_MAX); 96 width = mbtowc(&ch, s+1, MB_CUR_MAX); 134 while (width--) 161 int width; local 166 for (l = *s++; *s; s+=width) { [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tem_safe.c | 1663 if (src[width].tc_char != dst[width].tc_char || in tem_copy_width() 1664 src[width].tc_fg_color.n != dst[width].tc_fg_color.n || in tem_copy_width() 1668 width--; in tem_copy_width() 1720 int width; in tem_safe_copy_area() local 1738 int width; in tem_safe_copy_area() local 1799 da.width = 1; in tem_safe_text_display() 1836 da.width = (screen_size_t)width; 2077 ncols = (tems.ts_p_dimension.width + (width - 1))/ width; in tem_safe_pix_clear_prom_output() 2116 ncols = (tems.ts_p_dimension.width + (width - 1))/ width; in tem_safe_pix_clear_entire_screen() 2707 int i, width; in tem_safe_virtual_display() local [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_printf.c | 99 int b, c, i, pad, width, ells; in _doprint() local 111 width = 0; in _doprint() 134 for (width = 0; c >= '0' && c <= '9'; c = *fmt++) in _doprint() 135 width = width * 10 + c - '0'; in _doprint() 152 width--; in _doprint() 181 _printn(ul, b, width, pad, bp); in _doprint() 226 _printn(uint64_t n, int b, int width, int pad, char **bp) in _printn() argument 235 width--; in _printn() 237 while (width-- > 0) in _printn()
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_string.c | 91 inj_strtoll(const char *str, int width, longlong_t *valp) in inj_strtoll() argument 97 if (width != 0) { in inj_strtoll() 98 assert(width / 8 < (sizeof (signed_types) / in inj_strtoll() 100 desc = &signed_types[width / 8]; in inj_strtoll() 109 if (errno == ERANGE || (width != 0 && (val < desc->td_min || in inj_strtoll() 120 inj_strtoull(const char *str, int width, u_longlong_t *valp) in inj_strtoull() argument 126 if (width != 0) { in inj_strtoull() 127 assert(width / 8 < (sizeof (unsigned_types) / in inj_strtoull() 129 desc = &unsigned_types[width / 8]; in inj_strtoull() 138 if (errno == ERANGE || (width != 0 && val > desc->td_max)) in inj_strtoull()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | dist.c | 159 dist_print_header(const char *label, int width, const char *count) in dist_print_header() argument 165 if (width == 0) in dist_print_header() 166 width = 11; in dist_print_header() 175 mdb_printf("%*s %s%s%s %s\n", width, label, dashes, dist, dashes, in dist_print_header() 192 uint64_t total, int width) in dist_print_bucket() argument 203 if (width == 0) in dist_print_bucket() 204 width = 11; in dist_print_bucket() 222 mdb_printf("%*s |%s%s %lld\n", width, range, ats, spaces, count); in dist_print_bucket()
|
/illumos-gate/usr/src/cmd/nl/ |
H A D | nl.c | 239 width = 6; in main() 438 width = 6; in main() 583 npad(width, sep); in main() 596 npad(width, sep); in main() 607 npad(width, sep); in main() 619 npad(width, sep); in main() 627 npad(width, sep); in main() 635 npad(width, sep); in main() 672 num(n, width - 1); in pnum() 677 nbuf[width-1] = ' '; in pnum() [all …]
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prutil.c | 285 int trunc, size_t width) in getprojname() argument 297 else if (trunc && n > width) in getprojname() 298 (void) snprintf(str, len, "%.*s%c", width - 1, in getprojname() 317 else if (trunc && n > width) in getzonename() 318 (void) snprintf(str, len, "%.*s%c", width - 1, in getzonename() 393 int width; in format_name() local 406 width = format_namewidth(); in format_name() 409 if (strlen(pname) > (width - n - 1)) { in format_name() 410 pname_width = width - n - 1; in format_name() 422 if (width > 0 && strlen(buf) > width) in format_name() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 132 int type, width; in _strbyte2code() local 136 width = cswidth[type]; in _strbyte2code() 138 width++; in _strbyte2code() 140 if (byte + width <= endbyte) { in _strbyte2code() 141 (void) _curs_mbtowc(&wchar, byte, width); in _strbyte2code() 145 byte += width; in _strbyte2code()
|
/illumos-gate/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, ch… in fold() argument 105 if(cols['\b']==0 && (n=sfvalue(in))<=width) in fold() 116 while((cp-first) > (width-col)) in fold() 121 col = width-col; in fold() 145 if((cp-first) > (width-col)) in fold() 172 register int n, width=WIDTH; in b_fold() local 206 if ((width = opt_info.num) <= 0) in b_fold() 234 fold(fp,sfstdout,width,cont,contsize,cols); in b_fold()
|
H A D | uniq.c | 85 static int uniq(Sfio_t *fdin, Sfio_t *fdout, int fields, int chars, int width, int mode, int* all, … in uniq() argument 130 else if (width >= 0 && width < reclen) in uniq() 136 while (reclen < width && mp < ep) in uniq() 144 reclen = width; in uniq() 250 int fields=0, chars=0, width=-1; in b_uniq() local 299 width = opt_info.num; in b_uniq() 335 error_info.errors = uniq(fpin,fpout,fields,chars,width,mode,all,compare); in b_uniq()
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | printf.c | 263 width = 0; in vxprintf() 265 width = va_arg(ap,int); in vxprintf() 266 if( width<0 ){ in vxprintf() 268 width = -width; in vxprintf() 273 width = width*10 + c - '0'; in vxprintf() 278 width = etBUFSIZE-10; in vxprintf() 507 length = width; in vxprintf() 513 length = width = 0; in vxprintf() 574 length = width = 0; in vxprintf() 587 length = width = 0; in vxprintf() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_ascii.c | 90 p->width = ascii_width; in ascii_init() 120 p->width = locale_width; in ascii_init() 131 if (outopts->width) in ascii_init() 132 p->defrmargin = outopts->width; in ascii_init() 163 ascii_setwidth(struct termp *p, int iop, int width) in ascii_setwidth() argument 166 width /= 24; in ascii_setwidth() 169 p->defrmargin += width; in ascii_setwidth() 171 p->defrmargin = width ? (size_t)width : p->lastrmargin; in ascii_setwidth() 172 else if (p->defrmargin > (size_t)width) in ascii_setwidth() 173 p->defrmargin -= width; in ascii_setwidth()
|
/illumos-gate/usr/src/cmd/beadm/ |
H A D | beadm.c | 81 size_t width; member 192 size_t width = col_info->width; in print_hdr() local 236 col[i].width = 0; in init_hdr_cols() 245 col[i].width = wcsw; in init_hdr_cols() 247 col[i].width = sz; in init_hdr_cols() 249 col[i].width = strlen(name); in init_hdr_cols() 264 len[i] = hdr->cols[i].width; in count_widths() 333 hdr->cols[i].width = len[i]; in count_widths() 400 hdr->cols[3].width, buf, in print_be_nodes() 433 if (hdr->cols[1].width != 0) in print_be_snapshots() [all …]
|
/illumos-gate/usr/src/common/pnglite/ |
H A D | pnglite.c | 126 png->width = get_ul(ihdr+4); in png_read_ihdr() 150 printf("\twidth:\t\t%d\n", png->width); in png_print_info() 513 png->width * stride); in png_unfilter() 519 png->width*stride); in png_unfilter() 522 0, png->width*stride); in png_unfilter() 530 png->width*stride); in png_unfilter() 533 data+outpos, 0, png->width*stride); in png_unfilter() 541 png->width*stride); in png_unfilter() 544 data+outpos, 0, png->width*stride); in png_unfilter() 551 outpos += png->width * stride; in png_unfilter() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_fbuf.c | 90 uint16_t width; member 161 if (!sc->gc_image->vgamode && sc->memregs.width == 0 && in pci_fbuf_write() 325 sc->memregs.width = atoi(value); in pci_fbuf_parse_config() 326 if (sc->memregs.width > COLS_MAX) { in pci_fbuf_parse_config() 327 EPRINTLN("fbuf: width %d too large", sc->memregs.width); in pci_fbuf_parse_config() 330 if (sc->memregs.width == 0) in pci_fbuf_parse_config() 331 sc->memregs.width = 1920; in pci_fbuf_parse_config() 370 if (sc->gc_width != sc->memregs.width || in pci_fbuf_render() 372 bhyvegc_resize(gc, sc->memregs.width, sc->memregs.height); in pci_fbuf_render() 373 sc->gc_width = sc->memregs.width; in pci_fbuf_render() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | lsearch.c | 53 lsearch(const void *ky, void *bs, size_t *nelp, size_t width, in lsearch() argument 58 char *next = base + *nelp * width; /* End of table */ in lsearch() 61 for (; base < next; base += width) in lsearch() 65 res = memcpy(base, key, width); /* base now == next */ in lsearch()
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_rowcol_tbl.c | 822 rct_rcbmap(uint_t mcrev, int width, uint_t csmode) in rct_rcbmap() argument 831 rcbm->mt_width == width && csmode < rcbmap_tbls[i].nmodes) in rct_rcbmap() 843 rct_bnkswzlinfo(uint_t mcrev, int width) in rct_bnkswzlinfo() argument 852 swztp->swzt_width == width) in rct_bnkswzlinfo() 860 rct_csintlv_bits(uint_t mcrev, int width, uint_t csmode, int factor, in rct_csintlv_bits() argument 872 if (factor == 8 && width == 128 && in rct_csintlv_bits() 881 (rcm = rct_rcbmap(mcrev, width, csmode)) == NULL) { in rct_csintlv_bits() 886 csz = MC_CS_SIZE(bam, width); in rct_csintlv_bits()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfvscanf.c | 73 ((sc)->width = (ds) ? width : -1), \ 77 (width = (ds) ? (sc)->width : width), \ 97 if(sc->width == 0) 433 width = dot = 0; 552 width = v; 772 if(width == 0) 891 if(--width > 0 && 914 } while(--width > 0 && 920 } while(--width > 0 && 993 for(; width > 0; --width) [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | vfprintf.c | 358 width = 0; 388 GETASTER(width); 389 if (width >= 0) 391 width = -width; 454 width = n; 533 if (width > 120) 534 width = 120; 750 PAD(width - realsz, blanks); 766 PAD(width - realsz, zeroes); 775 PAD(width - realsz, blanks); [all …]
|
/illumos-gate/usr/src/common/util/ |
H A D | string.c | 75 int width, base, sign, num; in vsnprintf() local 99 width = prec = numwidth = 0; in vsnprintf() 142 width = num; in vsnprintf() 202 if (prec > width) in vsnprintf() 203 width = prec; in vsnprintf() 206 if (width > transfer_count) in vsnprintf() 281 width -= prec; in vsnprintf() 283 width -= numwidth; in vsnprintf() 284 width -= sign; in vsnprintf() 292 while (width-- > 0) in vsnprintf() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | printf.c | 113 int width, prec; in _print() local 211 width = va_arg (*args, int); in _print() 212 if (width < 0) { in _print() 213 width = -width; in _print() 218 width = 0; in _print() 221 width = width * 10 + n; in _print() 378 int n = width - strlen(prefix); in _print() 708 nblank = width in _print()
|
/illumos-gate/usr/src/cmd/cfgadm/ |
H A D | cfgadm.c | 1142 int width, in print_log_id() argument 1260 int width, in print_r_state() argument 1288 int width, in print_o_state() argument 1332 int width, in print_cond() argument 1386 int width, in print_time() argument 1420 int width, in print_time_p() argument 1550 (void) sprintf(lp, "%-*.*s", width, width, "y"); in print_busy() 1552 (void) sprintf(lp, "%-*.*s", width, width, "n"); in print_busy() 2153 if (fldp->width > pp->width) in process_fields() 2154 pp->width = fldp->width; in process_fields() [all …]
|