/freebsd/contrib/dialog/ |
H A D | dialog.pl | 86 my $width = shift; 91 . " $scr_lines $width 2>&1"; 102 my ( $title, $file, $width, $height ) = @_; 104 $width = int($width); 108 . " --textbox $file $height $width" ); 114 my ( $title, $message, $width ) = @_; 117 $width = int($width); 118 $message = &rhs_wordwrap( $message, $width ); 119 $height = 5 + &height_of( $width, $message ); 126 . " $height $width" ); [all …]
|
H A D | pause.c | 51 int width, in dialog_pause() argument 65 int old_width = width; in dialog_pause() 86 DLG_TRACE2N("width", width); in dialog_pause() 103 dlg_auto_size(title, prompt, &height, &width, in dialog_pause() 106 dlg_button_layout(buttons, &width); in dialog_pause() 108 dlg_auto_size(title, prompt, &height, &width, in dialog_pause() 113 dlg_print_size(height, width); in dialog_pause() 114 dlg_ctl_size(height, width); in dialog_pause() 117 x = dlg_box_x_ordinate(width); in dialog_pause() 120 dialog = dlg_new_window(height, width, y, x); in dialog_pause() [all …]
|
H A D | msgbox.c | 35 dialog_msgbox(const char *title, const char *cprompt, int height, int width, in dialog_msgbox() argument 68 DLG_TRACE2N("width", width); in dialog_msgbox() 76 req_wide = width; in dialog_msgbox() 84 dlg_auto_size(title, prompt, &height, &width, in dialog_msgbox() 87 dlg_print_size(height, width); in dialog_msgbox() 88 dlg_ctl_size(height, width); in dialog_msgbox() 90 x = dlg_box_x_ordinate(width); in dialog_msgbox() 93 dialog = dlg_new_window(height, width, y, x); in dialog_msgbox() 101 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); in dialog_msgbox() 110 mouse_mkbutton(height - 2, width / 2 - 4, 6, '\n'); in dialog_msgbox() [all …]
|
H A D | yesno.c | 34 dialog_yesno(const char *title, const char *cprompt, int height, int width) in dialog_yesno() argument 59 int req_wide = width; in dialog_yesno() 66 DLG_TRACE2N("width", width); in dialog_yesno() 74 dlg_auto_size(title, prompt, &height, &width, 2, min_width); in dialog_yesno() 75 dlg_print_size(height, width); in dialog_yesno() 76 dlg_ctl_size(height, width); in dialog_yesno() 78 x = dlg_box_x_ordinate(width); in dialog_yesno() 81 dialog = dlg_new_window(height, width, y, x); in dialog_yesno() 85 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); in dialog_yesno() 95 buttons, button, FALSE, width); in dialog_yesno() [all …]
|
H A D | inputbox.c | 49 dialog_inputbox(const char *title, const char *cprompt, int height, int width, in dialog_inputbox() argument 72 int old_width = width; in dialog_inputbox() 96 DLG_TRACE2N("width", width); in dialog_inputbox() 115 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, in dialog_inputbox() 121 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dialog_inputbox() 123 dlg_button_layout(buttons, &width); in dialog_inputbox() 124 dlg_print_size(height, width); in dialog_inputbox() 125 dlg_ctl_size(height, width); in dialog_inputbox() 127 xorg = dlg_box_x_ordinate(width); in dialog_inputbox() 130 dialog = dlg_new_window(height, width, yorg, xorg); in dialog_inputbox() [all …]
|
H A D | guage.c | 47 int width; member 127 dlg_draw_box2(dialog, 0, 0, obj->height, obj->width, dialog_attr, in repaint_text() 134 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width); in repaint_text() 138 2 + MARGIN, obj->width - 2 * (2 + MARGIN), in repaint_text() 151 for (i = 0; i < (obj->width - 2 * (3 + MARGIN)); i++) in repaint_text() 154 (void) wmove(dialog, obj->height - 3, (obj->width / 2) - 2); in repaint_text() 162 x = (obj->percent * (obj->width - 2 * (3 + MARGIN))) / 100; in repaint_text() 301 int width, in dlg_reallocate_gauge() argument 316 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dlg_reallocate_gauge() 317 dlg_print_size(height, width); in dlg_reallocate_gauge() [all …]
|
/freebsd/usr.bin/systat/ |
H A D | sysput.c | 40 sysputspaces(WINDOW *wd, int row, int lcol, int width) in sysputspaces() argument 45 mvwaddstr(wd, row, lcol, str60 + sizeof(str60) - width - 1); in sysputspaces() 49 sysputstrs(WINDOW *wd __unused, int row, int lcol, int width) in sysputstrs() argument 57 mvwaddstr(wnd, row, lcol, str60 + sizeof(str60) - width - 1); in sysputstrs() 61 sysputXs(WINDOW *wd __unused, int row, int lcol, int width) in sysputXs() argument 69 mvwaddstr(wnd, row, lcol, str60 + sizeof(str60) - width - 1); in sysputXs() 73 sysputuint64(WINDOW *wd, int row, int lcol, int width, uint64_t val, int flags) in sysputuint64() argument 75 char *start, wrtbuf[width + width + 1]; in sysputuint64() 84 len = humanize_number(&wrtbuf[width], width + 1, val, "", in sysputuint64() 88 else if (len < width) in sysputuint64() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | out.c | 127 size_t ewidth, min1, min2, wanted, width, xwidth; in tblcalc() local 164 dp->layout->width == 0 && in tblcalc() 167 dp->layout->width = in tblcalc() 169 if (col->width < dp->layout->width) in tblcalc() 170 col->width = dp->layout->width; in tblcalc() 181 width = tblcalc_data(tbl, in tblcalc() 185 dp->layout->width ? dp->layout->width : in tblcalc() 204 g->wanted = width; in tblcalc() 208 } else if ((*gp)->wanted < width) in tblcalc() 209 (*gp)->wanted = width; in tblcalc() [all …]
|
/freebsd/sys/sys/ |
H A D | bus_san.h | 44 #define BUS_SAN_MULTI(sp, rw, width, type) \ argument 45 void sp##_bus_space_##rw##_multi_##width(bus_space_tag_t, \ 47 void sp##_bus_space_##rw##_multi_stream_##width(bus_space_tag_t, \ 49 void sp##_bus_space_##rw##_region_##width(bus_space_tag_t, \ 51 void sp##_bus_space_##rw##_region_stream_##width(bus_space_tag_t, \ 54 #define BUS_SAN_READ(sp, width, type) \ argument 55 type sp##_bus_space_read_##width(bus_space_tag_t, \ 57 type sp##_bus_space_read_stream_##width(bus_space_tag_t, \ 59 BUS_SAN_MULTI(sp, read, width, type) 61 #define BUS_SAN_WRITE(sp, width, type) \ argument [all …]
|
/freebsd/sys/kern/ |
H A D | subr_scanf.c | 108 size_t width; /* field width, or 0 */ in vsscanf() local 143 width = 0; in vsscanf() 195 width = width * 10 + c - '0'; in vsscanf() 309 if (width == 0) in vsscanf() 310 width = 1; in vsscanf() 314 if ((n = inr) < width) { in vsscanf() 316 width -= n; in vsscanf() 322 sum += width; in vsscanf() 323 inr -= width; in vsscanf() 324 inp += width; in vsscanf() [all …]
|
/freebsd/lib/libvgl/ |
H A D | bitmap.c | 45 WriteVerticalLine(VGLBitmap *dst, int x, int y, int width, byte *line) in WriteVerticalLine() argument 57 end_offset = (x + width) & 0x07; in WriteVerticalLine() 58 bwidth = (width + start_offset) / 8; in WriteVerticalLine() 68 while (pos < width) { in WriteVerticalLine() 70 while (pos < last && pos < width) in WriteVerticalLine() 126 for (planepos=0, pos=i; pos<width; planepos++, pos+=4) in WriteVerticalLine() 136 width = width * dst->PixelBytes; in WriteVerticalLine() 138 while (width > 0) { in WriteVerticalLine() 140 i = min(VGLAdpInfo.va_window_size - offset, width); in WriteVerticalLine() 144 width -= i; in WriteVerticalLine() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | vfscanf.c | 117 convert_char(FILE *fp, char * p, int width) in convert_char() argument 124 if ((n = fp->_r) < width) { in convert_char() 126 width -= n; in convert_char() 134 sum += width; in convert_char() 135 fp->_r -= width; in convert_char() 136 fp->_p += width; in convert_char() 142 size_t r = __fread(p, 1, width, fp); in convert_char() 151 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 159 while (width-- != 0 && in convert_wchar() 171 convert_ccl(FILE *fp, char * p, int width, const char *ccltab) in convert_ccl() argument [all …]
|
H A D | vfwscanf.c | 128 convert_char(FILE *fp, char * mbp, int width, locale_t locale) in convert_char() argument 137 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_char() 152 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 158 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_wchar() 169 convert_ccl(FILE *fp, char * mbp, int width, const struct ccl *ccl, in convert_ccl() argument 180 width-- != 0 && inccl(ccl, wi)) { in convert_ccl() 197 convert_wccl(FILE *fp, wchar_t *wcp, int width, const struct ccl *ccl, in convert_wccl() argument 207 width-- != 0 && inccl(ccl, wi)) in convert_wccl() 214 width-- != 0 && inccl(ccl, wi)) in convert_wccl() 227 convert_string(FILE *fp, char * mbp, int width, locale_t locale) in convert_string() argument [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | vfscanf.c | 117 register size_t width; /* field width, or 0 */ local 183 width = 0; 227 width = width * 10 + c - '0'; 363 if (width == 0) 364 width = 1; 370 if ((size_t) (n = fp->f_r) < width) 373 width -= n; 385 sum += width; 386 fp->f_r -= width; 387 fp->f_p += width; [all …]
|
/freebsd/sys/dev/clk/allwinner/ |
H A D | ccu_a13.c | 159 .n = {.shift = 8, .width = 5}, 160 .k = {.shift = 4, .width = 2}, 161 .m = {.shift = 0, .width = 2}, 162 .p = {.shift = 16, .width = 2}, 180 .n = {.shift = 8, .width = 7}, 182 .m = {.shift = 0, .width = 5}, 183 .p = {.shift = 26, .width = 4}, 199 .n = {.shift = 8, .width = 5}, 200 .k = {.shift = 4, .width = 2}, 241 .n = {.shift = 8, .width = 5}, [all …]
|
H A D | aw_clk.h | 79 uint32_t width; /* Number of bits for the factor */ member 135 max = 1 << ((1 << factor->width) - 1); in aw_clk_factor_get_max() 137 max = (1 << factor->width); in aw_clk_factor_get_max() 213 .n.width = _n_width, \ 217 .k.width = _k_width, \ 221 .m.width = _m_width, \ 225 .p.width = _p_width, \ 253 .n.width = _n_width, \ 257 .k.width = _k_width, \ 261 .m.width = _m_width, \ [all …]
|
/freebsd/contrib/tcpdump/missing/ |
H A D | snprintf.c | 107 int width, int prec, int flags, int minusp) in append_number() argument 138 width -= len; in append_number() 140 width--; in append_number() 141 while(width-- > 0){ in append_number() 176 width -= len; in append_number() 177 while(width-- > 0){ in append_number() 196 int width, in append_string() argument 201 width -= prec; in append_string() 203 width -= strlen((char *)arg); in append_string() 205 while(width-- > 0) in append_string() [all …]
|
/freebsd/usr.bin/fold/ |
H A D | fold.c | 58 int rval, width; in main() local 62 width = -1; in main() 73 if ((width = atoi(optarg)) <= 0) { in main() 87 width = width * 10 + (ch - '0'); in main() 96 if (width == -1) in main() 97 width = ch - '0'; in main() 109 if (width == -1) in main() 110 width = DEFLINEWIDTH; in main() 113 fold(width); in main() 119 fold(width); in main() [all …]
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | lib_tracedmp.c | 53 int i, j, n, width; in NCURSES_EXPORT() local 56 for (width = i = 0; i <= win->_maxy; ++i) { in NCURSES_EXPORT() 66 if (n > width) in NCURSES_EXPORT() 67 width = n; in NCURSES_EXPORT() 69 if (width < win->_maxx) in NCURSES_EXPORT() 70 ++width; in NCURSES_EXPORT() 71 if (++width + 1 > (int) my_length) { in NCURSES_EXPORT() 72 my_length = (unsigned) (2 * (width + 1)); in NCURSES_EXPORT() 87 for (j = 0; j < width; ++j) { in NCURSES_EXPORT() 109 for (j = 0; j < width; ++j) in NCURSES_EXPORT() [all …]
|
/freebsd/contrib/dialog/samples/ |
H A D | dialog.py | 104 def yesno(self, text, height=10, width=30, title=''): argument 111 '--yesno "%s" %d %d' % (text, height, width)) 115 def msgbox(self, text, height=10, width=30, title=''): argument 121 '--msgbox "%s" %d %d' % (text, height, width)) 124 def infobox(self, text, height=10, width=30): argument 126 self.__perform('--infobox "%s" %d %d' % (text, height, width)) 129 def inputbox(self, text, height=10, width=30, init='', title=''): argument 135 '--inputbox "%s" %d %d "%s"' % (text, height, width, init)) 145 def textbox(self, filename, height=20, width=60, title=None): argument 150 ' --textbox "%s" %d %d' % (filename, height, width)) [all …]
|
/freebsd/lib/libcam/ |
H A D | scsi_cmdparse.c | 109 int width; in do_buff_decode() local 125 letter), (void *)((long)(ARG)), width, \ in do_buff_decode() 181 width = strtol(fmt, &intendp, 10); in do_buff_decode() 183 if (width > 8) in do_buff_decode() 194 value = (bits >> (shift - width)) & in do_buff_decode() 195 mask[width]; in do_buff_decode() 199 shift, bits, value, width, mask[width]); in do_buff_decode() 204 shift -= width; in do_buff_decode() 211 width = strtol(fmt, &intendp, 10); in do_buff_decode() 213 if (ind + width > len) { in do_buff_decode() [all …]
|
/freebsd/lib/libbsdstat/ |
H A D | bsdstat.c | 102 fprintf(fd, "%*s", f->width, f->label); in bsdstat_print_header() 123 fprintf(fd, "%*s", f->width, buf); in bsdstat_print_current() 144 fprintf(fd, "%*s", f->width, buf); in bsdstat_print_total() 156 int i, width; in bsdstat_print_verbose() local 158 width = 0; in bsdstat_print_verbose() 161 if (f->width > width) in bsdstat_print_verbose() 162 width = f->width; in bsdstat_print_verbose() 167 fprintf(fd, "%-*s %s\n", width, s, f->desc); in bsdstat_print_verbose() 174 int i, w, width; in bsdstat_print_fields() local 176 width = 0; in bsdstat_print_fields() [all …]
|
/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_debug.c | 235 int base, lflag, qflag, tmp, width, ladjust, sharpflag, neg, sign, dot; in dtrace_debug_vprintf() local 249 width = 0; in dtrace_debug_vprintf() 279 width = va_arg(ap, int); in dtrace_debug_vprintf() 280 if (width < 0) { in dtrace_debug_vprintf() 282 width = -width; in dtrace_debug_vprintf() 304 width = n; in dtrace_debug_vprintf() 335 if (!width) in dtrace_debug_vprintf() 336 width = 16; in dtrace_debug_vprintf() 337 while(width--) { in dtrace_debug_vprintf() 341 if (width) in dtrace_debug_vprintf() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | snprintf.c | 123 pad(struct snprintf_state *state, int width, char c) in pad() argument 126 while(width-- > 0){ in pad() 143 int width, int prec, int flags, int minusp) in append_number() argument 208 width -= prec; in append_number() 210 width -= nlen; in append_number() 213 width -= 2; in append_number() 216 width--; in append_number() 219 len += pad(state, width, ' '); in append_number() 232 if(prec - nlen > width - len - nlen) in append_number() 235 len += pad(state, width - len - nlen, '0'); in append_number() [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_radiotap.c | 279 size_t align, width; in radiotap_offset() member 283 .width = sizeof(uint64_t), in radiotap_offset() 287 .width = sizeof(uint8_t), in radiotap_offset() 291 .width = sizeof(uint8_t), in radiotap_offset() 295 .width = 2*sizeof(uint16_t), in radiotap_offset() 299 .width = sizeof(uint16_t), in radiotap_offset() 303 .width = sizeof(uint8_t), in radiotap_offset() 307 .width = sizeof(uint8_t), in radiotap_offset() 311 .width = sizeof(uint16_t), in radiotap_offset() 315 .width = sizeof(uint16_t), in radiotap_offset() [all …]
|