/titanic_50/usr/src/cmd/ps/ |
H A D | ps.c | 148 int width; /* width of field */ member 160 int width; member 416 fname[F_PID].width = fname[F_PPID].width = pidwidth; in stdmain() 417 fname[F_PGID].width = fname[F_SID].width = pidwidth; in stdmain() 429 fname[F_STIME].width = fname[F_STIME].minwidth = len; in stdmain() 804 f->width, f->header); in stdmain() 815 f->width, f->header); in stdmain() 823 f->width, f->header); in stdmain() 1153 int width = 0; in parse_format() local 1171 width = strlen(header); in parse_format() [all …]
|
/titanic_50/usr/src/common/util/ |
H A D | sscanf.c | 116 size_t width; /* field width, or 0 */ in vsscanf() local 151 width = 0; in vsscanf() 181 width = width * 10 + c - '0'; in vsscanf() 282 if (width == 0) in vsscanf() 283 width = 1; in vsscanf() 287 if ((n = inr) < width) { in vsscanf() 289 width -= n; in vsscanf() 294 sum += width; in vsscanf() 295 inr -= width; in vsscanf() 296 inp += width; in vsscanf() [all …]
|
H A D | bsearch.c | 47 size_t width, /* Width of an element (bytes) */ in bsearch() argument 58 two_width = width + width; in bsearch() 59 last = base + width * (nel - 1); in bsearch() 63 char *p = base + width * ((last - base)/two_width); in bsearch() 69 last = p - width; in bsearch() 71 base = p + width; in bsearch()
|
/titanic_50/usr/src/cmd/sendmail/libsm/ |
H A D | vfscanf.c | 119 register size_t width; /* field width, or 0 */ local 185 width = 0; 229 width = width * 10 + c - '0'; 365 if (width == 0) 366 width = 1; 372 if ((size_t) (n = fp->f_r) < width) 375 width -= n; 387 sum += width; 388 fp->f_r -= width; 389 fp->f_p += width; [all …]
|
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wins_wch.c | 60 int width; in __m_cc_ins() local 63 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width) in __m_cc_ins() 72 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); in __m_cc_ins() 75 (void) memmove(&w->_line[y][x + width], &w->_line[y][x], in __m_cc_ins() 76 (w->_maxx - x - width) * sizeof (**w->_line)); in __m_cc_ins() 79 if (__m_cc_replace(w, y, x, cc, 0) != width) in __m_cc_ins() 95 return (width); in __m_cc_ins() 109 int code, nx, width; in __m_wins_wch() local 122 for (nx = x + (8 - (x & 07)); x < nx; x += width) in __m_wins_wch() 123 if ((width = __m_cc_ins(w, y, x, &w->_bg)) <= 0) in __m_wins_wch() [all …]
|
H A D | m_cc.c | 295 int i, nbytes, width, have_one; in __m_mbs_cc() local 312 width = 1; in __m_mbs_cc() 314 width = wcwidth(wc); in __m_mbs_cc() 317 if (0 < width) { in __m_mbs_cc() 426 int width, i, j, spacing; in __m_cc_sort() local 429 for (width = spacing = i = 0; i < cc->_n; ++i) { in __m_cc_sort() 433 if (0 < width) in __m_cc_sort() 441 width = j; in __m_cc_sort() 457 return (width); in __m_cc_sort() 498 int first, width; in __m_cc_islast() local [all …]
|
/titanic_50/usr/src/lib/libadm/common/ |
H A D | puttext.c | 53 int width, i, n, force, wordcnt; in puttext() local 58 width = rmarg ? (rmarg - lmarg) : (WIDTH - lmarg); in puttext() 59 if (width > MWIDTH) in puttext() 60 width = MWIDTH; in puttext() 63 return (width); in puttext() 68 return (width); in puttext() 73 return (width); in puttext() 143 n = width + 1; in puttext() 167 if (n + wlen > width) { in puttext() 173 n = width + 1; in puttext() [all …]
|
/titanic_50/usr/src/lib/libeti/form/common/ |
H A D | ty_alnum.c | 73 int * width; in make_alnum() local 75 if (Alloc(width, int)) in make_alnum() 76 *width = va_arg(*ap, int); in make_alnum() 77 return ((char *) width); in make_alnum() 83 int * width; in copy_alnum() local 85 if (Alloc(width, int)) in copy_alnum() 86 *width = *((int *) arg); in copy_alnum() 87 return ((char *) width); in copy_alnum() 99 int width = *((int *) arg); in fcheck_alnum() local 113 return (*v || n < width ? FALSE : TRUE); in fcheck_alnum()
|
H A D | ty_alpha.c | 73 int * width; in make_alpha() local 75 if (Alloc(width, int)) in make_alpha() 76 *width = va_arg(*ap, int); in make_alpha() 77 return ((char *) width); in make_alpha() 83 int * width; in copy_alpha() local 85 if (Alloc(width, int)) in copy_alpha() 86 *width = *((int *) arg); in copy_alpha() 87 return ((char *) width); in copy_alpha() 99 int width = *((int *) arg); in fcheck_alpha() local 113 return (*v || n < width ? FALSE : TRUE); in fcheck_alpha()
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_dump.c | 61 int width = DUMP_WIDTH(flags); in mdb_dump_header() local 65 for (i = 0; i < width; i++) { in mdb_dump_header() 76 for (i = 0; i < width; i++) { in mdb_dump_header() 99 int width = DUMP_WIDTH(flags); in mdb_dump_data() local 110 for (i = 0; i < width; i++) { in mdb_dump_data() 113 if (i < lmargin || (width - i) <= rmargin) { in mdb_dump_data() 126 for (i = 0; i < width; i++) in mdb_dump_data() 127 if (i < lmargin || (width - i) <= rmargin) in mdb_dump_data() 133 abuf[width] = '\0'; in mdb_dump_data() 207 int group, width; in mdb_dump_internal() local [all …]
|
/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wins_wch.c | 58 int width; local 61 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width) 68 &w->_line[y][x + width], &w->_line[y][x], 69 (w->_maxx - x - width) * sizeof **w->_line 73 if (__m_cc_replace(w, y, x, cc, 0) != width) 88 return width; 105 int code, nx, width; local 122 for (nx = x + (8 - (x & 07)); x < nx; x += width) 123 if ((width = __m_cc_ins(w, y, x, &w->_bg)) <= 0) 136 if ((width = __m_cc_ins(w, y, x, cc)) <= 0) [all …]
|
H A D | m_cc.c | 291 int i, nbytes, width, have_one; in __m_mbs_cc() local 308 width = 1; in __m_mbs_cc() 309 else if ((width = wcwidth(wc)) < 0) in __m_mbs_cc() 313 if (0 < width) { in __m_mbs_cc() 343 int width, have_one; in __m_wcs_cc() local 351 if ((width = wcwidth(*wcs)) < 0) in __m_wcs_cc() 354 if (0 < width) { in __m_wcs_cc() 406 int width, i, j, spacing; local 409 for (width = spacing = i = 0; i < cc->_n; ++i) { 413 if (0 < width) [all …]
|
/titanic_50/usr/src/cmd/adbgen/common/ |
H A D | adbsub.c | 88 int rcount, width, sum, i; in do_fmt() local 107 width = 8; in do_fmt() 111 width = 8; in do_fmt() 113 width = 4; in do_fmt() 125 width = 4; in do_fmt() 132 width = 2; in do_fmt() 141 width = 1; in do_fmt() 149 width = 0; in do_fmt() 152 width = -1; in do_fmt() 163 width = 0; in do_fmt() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | bsearch.c | 36 bsearch(key, base, nel, width, compar) in bsearch() argument 40 unsigned width; /* Width of an element (bytes) */ 43 int two_width = width + width; 44 POINTER last = base + width * (nel - 1); /* Last element in table */ 48 register POINTER p = base + width * ((last - base)/two_width); 54 last = p - width; 56 base = p + width;
|
/titanic_50/usr/src/lib/libeti/menu/common/ |
H A D | scale.c | 43 int width; in _scale() local 47 width = MaxName(m) + Marklen(m); in _scale() 50 width += MaxDesc(m) + 1; in _scale() 52 Itemlen(m) = width; in _scale() 55 width = width * Cols(m); in _scale() 57 width += Cols(m) - 1; in _scale() 58 Width(m) = width; in _scale()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | tem.c | 213 int width, height; in tem_internal_init() local 227 ptem->tvs_outbuf_size = tems.ts_c_dimension.width; in tem_internal_init() 231 width = tems.ts_c_dimension.width; in tem_internal_init() 233 ptem->tvs_screen_buf_size = width * height; in tem_internal_init() 235 (unsigned char *)kmem_alloc(width * height, KM_SLEEP); in tem_internal_init() 237 total = width * height * tc_size; in tem_internal_init() 247 for (j = 0; j < width; j++) { in tem_internal_init() 248 ptem->tvs_screen_buf[i * width + j] = ' '; in tem_internal_init() 249 ptem->tvs_fg_buf[(i * width +j) * tc_size] = fg; in tem_internal_init() 250 ptem->tvs_bg_buf[(i * width +j) * tc_size] = bg; in tem_internal_init() [all …]
|
H A D | tem_safe.c | 648 tems.ts_c_dimension.width - in tem_safe_chkparam() 658 tems.ts_c_dimension.width, in tem_safe_chkparam() 670 tems.ts_c_dimension.width, in tem_safe_chkparam() 686 tems.ts_c_dimension.width, in tem_safe_chkparam() 700 (tems.ts_c_dimension.width - in tem_safe_chkparam() 718 tems.ts_c_dimension.width, in tem_safe_chkparam() 788 if (tem->tvs_params[0] > tems.ts_c_dimension.width) in tem_safe_chkparam() 789 tem->tvs_params[0] = tems.ts_c_dimension.width; in tem_safe_chkparam() 854 if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) { in tem_safe_outch() 916 tems.ts_c_dimension.width - in tem_safe_lf() [all …]
|
/titanic_50/usr/src/lib/libxcurses/src/libc/stdio/ |
H A D | vfscanf.c | 120 static int width; /* field width value */ variable 154 width = 0; in mks_vfscanf() 195 number = getnum(BASE10, width, SIGNED); in mks_vfscanf() 200 number = getnum(BASE10, width, UNSIGNED); in mks_vfscanf() 205 number = getnum(BASE16, width, SIGNED); in mks_vfscanf() 210 number = getnum(BASE8, width, SIGNED); in mks_vfscanf() 215 number = getnum(NOBASE, width, SIGNED); in mks_vfscanf() 255 if (width) { in mks_vfscanf() 256 if (--width == 0) in mks_vfscanf() 372 if (width == 0) in mks_vfscanf() [all …]
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | printf.c | 64 static int width, sign, fill; variable 123 width = va_arg(ap, int); in viprintf() 124 if (width < 0) { in viprintf() 125 width = -width; in viprintf() 131 width = 0; in viprintf() 133 width = width * 10 + (*fmt++ - '0'); in viprintf() 235 width -= 2; in viprintf() 376 if (alen > width) in _p_emit() 377 width = alen; in _p_emit() 384 width--; in _p_emit() [all …]
|
/titanic_50/usr/src/lib/libast/common/tm/ |
H A D | tmxfmt.c | 110 int width; in tmxfmt() local 156 width = 0; in tmxfmt() 195 width = width * 10 + (c - '0'); in tmxfmt() 263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad); in tmxfmt() 266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad); in tmxfmt() 272 cp = number(cp, ep, (long)tm->tm_mday, 0, width, pad); in tmxfmt() 275 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad); in tmxfmt() 303 cp = number(cp, ep, (long)n, c, width, pad); in tmxfmt() 306 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad); in tmxfmt() 314 cp = number(cp, ep, (long)n, 2, width, pad); in tmxfmt() [all …]
|
/titanic_50/usr/src/cmd/prctl/ |
H A D | utils.c | 265 int width; in uint64toscaled() local 275 width = widthin; in uint64toscaled() 277 width = 0; in uint64toscaled() 279 (void) snprintf(string, SCALED_STRLEN, "%%%dllu", width); in uint64toscaled() 326 width = widthin; in uint64toscaled() 328 width = 0; in uint64toscaled() 330 (void) snprintf(string, SCALED_STRLEN, "%%%d.%dlf", width, decimals); in uint64toscaled() 375 int width; in scaledeqscaled() local 420 width = 0; in scaledeqscaled() 421 if (width1 > width) in scaledeqscaled() [all …]
|
/titanic_50/usr/src/cmd/mandoc/ |
H A D | out.c | 166 if (ewidth < col->width) in tblcalc() 167 ewidth = col->width; in tblcalc() 172 xwidth += col->width; in tblcalc() 185 if (col->width == ewidth) in tblcalc() 188 xwidth += ewidth - col->width; in tblcalc() 189 col->width = ewidth; in tblcalc() 224 col->width = (double)xwidth * ++necol / nxcol in tblcalc() 227 col->width--; in tblcalc() 228 ewidth += col->width; in tblcalc() 246 if (col->width < sz) in tblcalc_data() [all …]
|
H A D | tbl_term.c | 98 tsz += tp->tbl.cols[ic].width + 3; in term_tbl() 233 tbl_char(tp, line, tp->tbl.cols[c1->col].width + 1); in tbl_hrule() 260 tbl_char(tp, ASCII_NBRSP, col->width); in tbl_data() 266 tbl_char(tp, ASCII_NBRSP, col->width); in tbl_data() 271 tbl_char(tp, '-', col->width); in tbl_data() 276 tbl_char(tp, '=', col->width); in tbl_data() 284 tbl_char(tp, '-', col->width); in tbl_data() 287 tbl_char(tp, '=', col->width); in tbl_data() 302 tbl_char(tp, ASCII_NBRSP, col->width); in tbl_data() 329 size_t len, padl, padr, width; in tbl_literal() local [all …]
|
/titanic_50/usr/src/uts/intel/promif/ |
H A D | prom_printf.c | 102 int b, c, i, pad, width, ells; in _doprint() local 108 width = 0; in _doprint() 122 for (width = 0; c >= '0' && c <= '9'; c = *fmt++) in _doprint() 123 width = (width * 10) + (c - '0'); in _doprint() 141 width--; in _doprint() 170 _printn(ul, b, width, pad, emit, bp); in _doprint() 203 _printn(uint64_t n, int b, int width, int pad, void (*emit)(char, char **), in _printn() argument 213 width--; in _printn() 215 while (width-- > 0) in _printn()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | getprm.c | 57 int width; local 61 while ((width = mbtowc(&ch, s, MB_CUR_MAX)) && 64 while (width--) 67 s += width; 73 while ((width = mbtowc(&ch, s, MB_CUR_MAX)) && ch) { 85 width = mbtowc(&ch, s+1, MB_CUR_MAX); 98 width = mbtowc(&ch, s+1, MB_CUR_MAX); 136 while (width--) 163 int width; local 168 for (l = *s++; *s; s+=width) { [all …]
|