Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/titanic_51/usr/src/cmd/ps/
H A Dps.c148 int width; /* width of field */ member
160 int width; member
165 /* fname header width minwidth */
407 * calculate width of pid fields based on configured MAXPID in stdmain()
416 fname[F_PID].width = fname[F_PPID].width = pidwidth; in stdmain()
417 fname[F_PGID].width = fname[F_SID].width = pidwidth; in stdmain()
421 * Specify the printf format with width an in stdmain()
1153 int width = 0; parse_format() local
1535 int width = fname[F_STIME].width; prcom() local
1602 prtpct(ushort_t pct,int width) prtpct() argument
1615 print_time(time_t tim,int width) print_time() argument
1652 int width = f->width; print_field() local
2036 int width = f->width; print_zombie_field() local
2227 prtime(timestruc_t st,int width,int old) prtime() argument
2369 int width = fname[F_STIME].width; przom() local
[all...]
/titanic_51/usr/src/common/util/
H A Dsscanf.c116 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()
[all...]
H A Dbsearch.c47 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_51/usr/src/cmd/sendmail/libsm/
H A Dvfscanf.c119 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;
[all...]
/titanic_51/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwins_wch.c54 * the column width of the inserted character. The right most columns
55 * will be truncated according to the width of the character inserted.
60 int width; in __m_cc_ins() local
62 /* Determine the character width to insert. */ in __m_cc_ins()
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()
109 int code, nx, width; __m_wins_wch() local
[all...]
H A Dm_cc.c295 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()
419 * Return the spacing character's column width or -1 if more
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; __m_cc_islast() local
520 int i, width; __m_cc_replace() local
635 int nx, width, code = ERR; __m_cc_add() local
707 int width, code = ERR; __m_cc_add_k() local
738 int i, j, width; __m_cc_modify() local
925 int dx, width; __m_cc_expand() local
[all...]
/titanic_51/usr/src/lib/libadm/common/
H A Dputtext.c53 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()
169 * if (n + wlen) is larger than width, *w in puttext()
[all...]
/titanic_51/usr/src/lib/libeti/form/common/
H A Dty_alnum.c43 * set_field_type(f, TYPE_ALNUM, width);
45 * int width; minimum token width
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 in copy_alnum()
99 int width = *((int *) arg); fcheck_alnum() local
[all...]
H A Dty_alpha.c43 * set_field_type(f, TYPE_ALPHA, width);
45 * int width; minimum token width
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 in copy_alpha()
99 int width = *((int *) arg); fcheck_alpha() local
[all...]
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_dump.c50 * Output the header for the dump. pad is the width of the address
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] in mdb_dump_data()
207 int group, width; mdb_dump_internal() local
[all...]
/titanic_51/usr/src/cmd/adbgen/common/
H A Dadbsub.c88 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 in do_fmt()
[all...]
/titanic_51/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwins_wch.c48 * the column width of the inserted character. The right most columns
49 * will be truncated according to the width of the character inserted.
58 int width; local
60 /* Determine the character width to insert. */
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; global() local
[all...]
H A Dm_cc.c291 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()
398 * Return the spacing character's column width or -1 if more
406 int width, i, j, spacing; local
409 for (width
494 int first, width; global() local
518 int i, width; global() local
611 int nx, width, code = ERR; global() local
682 int i, width; global() local
755 int dx, width; global() local
[all...]
/titanic_51/usr/src/lib/libbc/libc/gen/common/
H A Dbsearch.c36 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_51/usr/src/lib/libeti/menu/common/
H A Dscale.c43 int width; in _scale() local
46 /* Get the width of one column */ in _scale()
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_51/usr/src/boot/lib/libstand/
H A Dprintf.c261 int base, lflag, qflag, tmp, width, ladjust, sharpflag, neg, sign, dot; in kvprintf() local
281 width = 0; in kvprintf()
309 width = va_arg(ap, int); in kvprintf()
310 if (width < 0) { in kvprintf()
312 width = -width; in kvprintf()
334 width = n; in kvprintf()
365 if (!width) in kvprintf()
366 width = 16; in kvprintf()
367 while(width in kvprintf()
[all...]
/titanic_51/usr/src/uts/common/io/
H A Dtem.c213 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 in tem_internal_init()
390 size_t width = 0; tem_info_init() local
523 tems_setup_terminal(struct vis_devinit * tp,size_t height,size_t width) tems_setup_terminal() argument
791 int ncols, width; tem_prom_scroll_up() local
[all...]
H A Dtem_safe.c648 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()
1309 tem_safe_image_display(struct tem_vt_state * tem,uchar_t * image,int height,int width,screen_pos_t row,screen_pos_t col,cred_t * credp,enum called_from called_from) tem_safe_image_display() argument
1531 int nrows, ncols, width, height; tem_safe_pix_clear_prom_output() local
1554 int nrows, ncols, width, height; tem_safe_pix_clear_entire_screen() local
1929 set_font(struct font * f,short * rows,short * cols,short height,short width) set_font() argument
2231 int i, width; tem_safe_virtual_display() local
2388 int width; tem_safe_unblank_screen() local
[all...]
/titanic_51/usr/src/lib/libxcurses/src/libc/stdio/
H A Dvfscanf.c120 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 in mks_vfscanf()
540 getnum(int base,int width,int sign) getnum() argument
[all...]
/titanic_51/usr/src/cmd/vi/port/
H A Dprintf.c64 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()
154 * zero and 1 otherwise, "width" and "prec" in viprintf()
235 width in viprintf()
[all...]
/titanic_51/usr/src/lib/libast/common/tm/
H A Dtmxfmt.c110 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_51/usr/src/cmd/prctl/
H A Dutils.c148 /* compute width of decimal equivalent */ in scaledtouint64()
177 /* compute width of number string */ in scaledtouint64()
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()
318 /* reduce decimal places if we've overshot the desired width */ in uint64toscaled()
326 width = widthin; in uint64toscaled()
328 width = 0; in uint64toscaled()
330 (void) snprintf(string, SCALED_STRLEN, "%%%d.%dlf", width, decimal in uint64toscaled()
375 int width; scaledeqscaled() local
461 int width; scaledequint64() local
[all...]
/titanic_51/usr/src/cmd/mandoc/
H A Dout.c104 * used for the actual width calculations.
156 * Find maximum width of the columns to equalize. in tblcalc()
157 * Find total width of the columns *not* to maximize. in tblcalc()
166 if (ewidth < col->width) in tblcalc()
167 ewidth = col->width; in tblcalc()
172 xwidth += col->width; in tblcalc()
177 * Update total width of the columns not to maximize. in tblcalc()
185 if (col->width == ewidth) in tblcalc()
188 xwidth += ewidth - col->width; in tblcalc()
189 col->width in tblcalc()
[all...]
H A Dtbl_term.c98 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_51/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxfmt.c110 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, -2, width, pad); in tmxfmt()
300 cp = number(cp, ep, (long)n, c, width, pad); in tmxfmt()
303 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad); in tmxfmt()
311 cp = number(cp, ep, (long)n, 2, width, pa in tmxfmt()
[all...]

12345678910>>...15