| /freebsd-src/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 …]
|
| /freebsd-src/usr.bin/systat/ |
| H A D | sysput.c | 40 sysputspaces(WINDOW *wd, int row, int lcol, int width) 45 mvwaddstr(wd, row, lcol, str60 + sizeof(str60) - width - 1); in sysputspaces() 49 sysputstrs(WINDOW *wd __unused, int row, int lcol, int width) 57 mvwaddstr(wnd, row, lcol, str60 + sizeof(str60) - width - 1); in sysputstrs() 61 sysputXs(WINDOW *wd __unused, int row, int lcol, int width) 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) 75 char *start, wrtbuf[width + width + 1]; in sysputuint64() 84 len = humanize_number(&wrtbuf[width], widt in sysputuint64() 41 sysputspaces(WINDOW * wd,int row,int lcol,int width) sysputspaces() argument 50 sysputstrs(WINDOW * wd __unused,int row,int lcol,int width) sysputstrs() argument 62 sysputXs(WINDOW * wd __unused,int row,int lcol,int width) sysputXs() argument 74 sysputuint64(WINDOW * wd,int row,int lcol,int width,uint64_t val,int flags) sysputuint64() argument 101 sysputwuint64(WINDOW * wd,int row,int lcol,int width,uint64_t val,int flags) sysputwuint64() argument 110 sysputpage(WINDOW * wd,int row,int lcol,int width,uint64_t pages,int flags) sysputpage() argument [all...] |
| /freebsd-src/contrib/mandoc/ |
| H A D | out.c | 114 * used for the actual width calculations. 127 size_t ewidth, min1, min2, wanted, width, xwidth; in tblcalc() 161 /* Handle explicit width specifications. */ in tblcalc() 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() 177 * Calculate an automatic width in tblcalc() 126 size_t ewidth, min1, min2, wanted, width, xwidth; tblcalc() local [all...] |
| /freebsd-src/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-src/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-src/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-src/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-src/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-src/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 …]
|
| /freebsd-src/contrib/tcpdump/missing/ |
| H A D | snprintf.c | 107 int width, int prec, int flags, int minusp) in append_number() 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() 201 width -= prec; in append_string() 203 width -= strlen((char *)arg); in append_string() 205 while(width in append_string() 109 append_number(struct state * state,unsigned long num,unsigned base,char * rep,int width,int prec,int flags,int minusp) append_number() argument 198 append_string(struct state * state,unsigned char * arg,int width,int prec,int flags) append_string() argument 229 append_char(struct state * state,unsigned char arg,int width,int flags) append_char() argument 270 int width = 0; xyzprintf() local [all...] |
| /freebsd-src/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-src/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-src/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-src/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-src/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-src/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-src/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-src/usr.sbin/bhyve/ |
| H A D | bhyvegc.c | 43 bhyvegc_init(int width, int height, void *fbaddr) in bhyvegc_init() argument 51 gc_image->width = width; in bhyvegc_init() 57 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init() 76 bhyvegc_resize(struct bhyvegc *gc, int width, int height) in bhyvegc_resize() argument 82 gc_image->width = width; in bhyvegc_resize() 85 gc_image->data = reallocarray(gc_image->data, width * height, in bhyvegc_resize() 88 memset(gc_image->data, 0, width * height * in bhyvegc_resize()
|
| /freebsd-src/lib/libc/stdlib/ |
| H A D | lsearch.c | 19 void *lsearch(const void *key, void *base, size_t *nelp, size_t width, in lsearch() argument 23 return (lwork(key, base, nelp, width, compar, 1)); in lsearch() 26 void *lfind(const void *key, const void *base, size_t *nelp, size_t width, in lfind() argument 30 return (lwork(key, base, nelp, width, compar, 0)); in lfind() 34 lwork(const void *key, const void *base, size_t *nelp, size_t width, in lwork() argument 40 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork() 53 memcpy(endp, key, width); in lwork()
|
| /freebsd-src/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 …]
|