| /NextBSD/lib/libvgl/ |
| HD | bitmap.c | 46 WriteVerticalLine(VGLBitmap *dst, int x, int y, int width, byte *line) in WriteVerticalLine() argument 58 end_offset = (x + width) & 0x07; in WriteVerticalLine() 59 i = (width + start_offset) / 8; in WriteVerticalLine() 69 while (pos < width) { in WriteVerticalLine() 71 while (pos < last && pos < width) in WriteVerticalLine() 89 width+=8; in WriteVerticalLine() 90 width /= 8; in WriteVerticalLine() 104 bcopy(&VGLPlane[i][0], dst->Bitmap + pos, width); in WriteVerticalLine() 113 for (last = width; ; ) { in WriteVerticalLine() 115 bcopy(&VGLPlane[i][width - last], dst->Bitmap + offset, len); in WriteVerticalLine() [all …]
|
| /NextBSD/contrib/dialog/ |
| HD | dialog.pl | 23 local ( $title, $file, $width, $height ) = @_; 25 system("dialog --title \"$title\" --textbox $file $height $width"); 31 local ( $title, $message, $width ) = @_; 34 $message = &rhs_wordwrap($message, $width); 42 $tmp = system("dialog --title \"$title\" --msgbox \"$message\" $height $width"); 51 local ( $title, $message, $width ) = @_; 54 $message = &rhs_wordwrap($message, $width); 62 return system("dialog --title \"$title\" --infobox \"$message\" $height $width"); 66 local ( $title, $message, $width ) = @_; 69 $message = &rhs_wordwrap($message, $width); [all …]
|
| HD | pause.c | 51 int width, in dialog_pause() argument 65 int old_width = width; in dialog_pause() 92 width = old_width; in dialog_pause() 96 dlg_auto_size(title, prompt, &height, &width, in dialog_pause() 99 dlg_button_layout(buttons, &width); in dialog_pause() 101 dlg_auto_size(title, prompt, &height, &width, in dialog_pause() 106 dlg_print_size(height, width); in dialog_pause() 107 dlg_ctl_size(height, width); in dialog_pause() 110 x = dlg_box_x_ordinate(width); in dialog_pause() 113 dialog = dlg_new_window(height, width, y, x); in dialog_pause() [all …]
|
| HD | progressbox.c | 90 print_line(MY_OBJ * obj, WINDOW *win, int row, int width) in print_line() argument 98 (void) waddnstr(win, line, MIN((int) strlen(line), width - 2)); in print_line() 100 line[MIN((int) strlen(line), width - 2)] = '\0'; in print_line() 107 for (i = 0; i < width - x; i++) in print_line() 112 pause_for_ok(WINDOW *dialog, int height, int width) in pause_for_ok() argument 138 mouse_mkbutton(height - 2, width / 2 - 4, 6, '\n'); in pause_for_ok() 148 FALSE, width); in pause_for_ok() 198 int width, in dlg_progressbox() argument 210 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dlg_progressbox() 211 dlg_print_size(height, width); in dlg_progressbox() [all …]
|
| HD | msgbox.c | 35 dialog_msgbox(const char *title, const char *cprompt, int height, int width, in dialog_msgbox() argument 70 req_wide = width; in dialog_msgbox() 77 dlg_auto_size(title, prompt, &height, &width, in dialog_msgbox() 80 dlg_print_size(height, width); in dialog_msgbox() 81 dlg_ctl_size(height, width); in dialog_msgbox() 83 x = dlg_box_x_ordinate(width); in dialog_msgbox() 88 dlg_move_window(dialog, height, width, y, x); in dialog_msgbox() 92 dialog = dlg_new_window(height, width, y, x); in dialog_msgbox() 100 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); in dialog_msgbox() 107 mouse_mkbutton(height - 2, width / 2 - 4, 6, '\n'); in dialog_msgbox() [all …]
|
| HD | yesno.c | 34 dialog_yesno(const char *title, const char *cprompt, int height, int width) in dialog_yesno() argument 60 int req_wide = width; in dialog_yesno() 66 dlg_auto_size(title, prompt, &height, &width, 2, min_width); in dialog_yesno() 67 dlg_print_size(height, width); in dialog_yesno() 68 dlg_ctl_size(height, width); in dialog_yesno() 70 x = dlg_box_x_ordinate(width); in dialog_yesno() 75 dlg_move_window(dialog, height, width, y, x); in dialog_yesno() 79 dialog = dlg_new_window(height, width, y, x); in dialog_yesno() 84 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); in dialog_yesno() 94 buttons, button, FALSE, width); in dialog_yesno() [all …]
|
| HD | timebox.c | 49 int width; member 82 data->height + (2 * MARGIN), data->width + (2 * MARGIN), in draw_cell() 94 int width, int height, in init_object() argument 103 data->width = width; in init_object() 109 data->height, data->width, in init_object() 116 dlg_mouse_mkregion(y, x, height, width, code); in init_object() 141 int width, in dialog_timebox() argument 176 int old_width = width; in dialog_timebox() 203 dlg_auto_size(title, prompt, &height, &width, 0, 0); in dialog_timebox() 205 if (width < MIN_WIDE) in dialog_timebox() [all …]
|
| HD | guage.c | 47 int width; member 126 dlg_draw_box2(dialog, 0, 0, obj->height, obj->width, dialog_attr, in repaint_text() 133 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width); in repaint_text() 137 2 + MARGIN, obj->width - 2 * (2 + MARGIN), in repaint_text() 150 for (i = 0; i < (obj->width - 2 * (3 + MARGIN)); i++) in repaint_text() 153 (void) wmove(dialog, obj->height - 3, (obj->width / 2) - 2); in repaint_text() 161 x = (obj->percent * (obj->width - 2 * (3 + MARGIN))) / 100; in repaint_text() 293 int width, in dlg_reallocate_gauge() argument 308 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dlg_reallocate_gauge() 309 dlg_print_size(height, width); in dlg_reallocate_gauge() [all …]
|
| HD | inputbox.c | 44 dialog_inputbox(const char *title, const char *cprompt, int height, int width, in dialog_inputbox() argument 65 int old_width = width; in dialog_inputbox() 100 dlg_auto_size(title, prompt, &height, &width, 5, in dialog_inputbox() 106 dlg_auto_size(title, prompt, &height, &width, 5, 26); in dialog_inputbox() 108 dlg_button_layout(buttons, &width); in dialog_inputbox() 109 dlg_print_size(height, width); in dialog_inputbox() 110 dlg_ctl_size(height, width); in dialog_inputbox() 112 xorg = dlg_box_x_ordinate(width); in dialog_inputbox() 115 dialog = dlg_new_window(height, width, yorg, xorg); in dialog_inputbox() 121 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); in dialog_inputbox() [all …]
|
| HD | mixedgauge.c | 43 int width, old_width, min_width; member 111 int limit_x = dlg->width; in myprint_status() 184 mydraw_mixed_box(WINDOW *win, int y, int x, int height, int width, in mydraw_mixed_box() argument 187 dlg_draw_box(win, y, x, height, width, boxchar, borderchar); in mydraw_mixed_box() 194 dlg_print_text(win, message, width, &attr); in mydraw_mixed_box() 225 for (i = 0; i < (dlg->width - 2 * (3 + MARGIN)); i++) in dlg_update_mixedgauge() 228 (void) wmove(dlg->dialog, dlg->height - 3, (dlg->width / 2) - 2); in dlg_update_mixedgauge() 236 x = (percent * (dlg->width - 2 * (3 + MARGIN))) / 100; in dlg_update_mixedgauge() 276 dlg->width = dlg->old_width = aWidth; in dlg_begin_mixedgauge() 306 dlg->width = dlg->old_width; in dlg_begin_mixedgauge() [all …]
|
| /NextBSD/sys/kern/ |
| HD | subr_scanf.c | 107 size_t width; /* field width, or 0 */ in vsscanf() local 142 width = 0; in vsscanf() 185 width = width * 10 + c - '0'; in vsscanf() 294 if (width == 0) in vsscanf() 295 width = 1; in vsscanf() 299 if ((n = inr) < width) { in vsscanf() 301 width -= n; in vsscanf() 307 sum += width; in vsscanf() 308 inr -= width; in vsscanf() 309 inp += width; in vsscanf() [all …]
|
| /NextBSD/lib/libc/stdio/ |
| HD | vfscanf.c | 128 convert_char(FILE *fp, char * p, int width) in convert_char() argument 135 if ((n = fp->_r) < width) { in convert_char() 137 width -= n; in convert_char() 145 sum += width; in convert_char() 146 fp->_r -= width; in convert_char() 147 fp->_p += width; in convert_char() 153 size_t r = __fread(p, 1, width, fp); in convert_char() 162 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 170 while (width-- != 0 && in convert_wchar() 182 convert_ccl(FILE *fp, char * p, int width, const char *ccltab) in convert_ccl() argument [all …]
|
| HD | vfwscanf.c | 141 convert_char(FILE *fp, char * mbp, int width, locale_t locale) in convert_char() argument 150 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_char() 165 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 171 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_wchar() 182 convert_ccl(FILE *fp, char * mbp, int width, const struct ccl *ccl, in convert_ccl() argument 193 width-- != 0 && inccl(ccl, wi)) { in convert_ccl() 210 convert_wccl(FILE *fp, wchar_t *wcp, int width, const struct ccl *ccl, in convert_wccl() argument 220 width-- != 0 && inccl(ccl, wi)) in convert_wccl() 227 width-- != 0 && inccl(ccl, wi)) in convert_wccl() 240 convert_string(FILE *fp, char * mbp, int width, locale_t locale) in convert_string() argument [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | ui-out.c | 37 int width; member 157 static void default_table_header (struct ui_out *uiout, int width, 166 static void default_field_int (struct ui_out *uiout, int fldno, int width, 170 static void default_field_skip (struct ui_out *uiout, int fldno, int width, 173 static void default_field_string (struct ui_out *uiout, int fldno, int width, 178 int width, enum ui_align align, 233 static void uo_table_header (struct ui_out *uiout, int width, 242 static void uo_field_int (struct ui_out *uiout, int fldno, int width, 244 static void uo_field_skip (struct ui_out *uiout, int fldno, int width, 246 static void uo_field_string (struct ui_out *uiout, int fldno, int width, [all …]
|
| /NextBSD/usr.bin/fold/ |
| HD | fold.c | 71 int rval, width; in main() local 75 width = -1; in main() 86 if ((width = atoi(optarg)) <= 0) { in main() 100 width = width * 10 + (ch - '0'); in main() 109 if (width == -1) in main() 110 width = ch - '0'; in main() 122 if (width == -1) in main() 123 width = DEFLINEWIDTH; in main() 126 fold(width); in main() 132 fold(width); in main() [all …]
|
| /NextBSD/contrib/dialog/samples/ |
| HD | 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 …]
|
| /NextBSD/contrib/ncurses/ncurses/trace/ |
| HD | lib_tracedmp.c | 52 int i, j, n, width; in NCURSES_EXPORT() local 55 for (width = i = 0; i <= win->_maxy; ++i) { in NCURSES_EXPORT() 65 if (n > width) in NCURSES_EXPORT() 66 width = n; in NCURSES_EXPORT() 68 if (width < win->_maxx) in NCURSES_EXPORT() 69 ++width; in NCURSES_EXPORT() 70 if (++width + 1 > (int) my_length) { in NCURSES_EXPORT() 71 my_length = (unsigned) (2 * (width + 1)); in NCURSES_EXPORT() 86 for (j = 0; j < width; ++j) { in NCURSES_EXPORT() 108 for (j = 0; j < width; ++j) in NCURSES_EXPORT() [all …]
|
| /NextBSD/crypto/heimdal/lib/roken/ |
| HD | 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 …]
|
| /NextBSD/sys/cddl/dev/dtrace/ |
| HD | dtrace_debug.c | 237 int base, lflag, qflag, tmp, width, ladjust, sharpflag, neg, sign, dot; in dtrace_debug_vprintf() local 251 width = 0; in dtrace_debug_vprintf() 281 width = va_arg(ap, int); in dtrace_debug_vprintf() 282 if (width < 0) { in dtrace_debug_vprintf() 284 width = -width; in dtrace_debug_vprintf() 306 width = n; in dtrace_debug_vprintf() 337 if (!width) in dtrace_debug_vprintf() 338 width = 16; in dtrace_debug_vprintf() 339 while(width--) { in dtrace_debug_vprintf() 343 if (width) in dtrace_debug_vprintf() [all …]
|
| /NextBSD/contrib/tcpdump/missing/ |
| HD | snprintf.c | 128 int width, int prec, int flags, int minusp) in append_number() argument 159 width -= len; in append_number() 161 width--; in append_number() 162 while(width-- > 0){ in append_number() 197 width -= len; in append_number() 198 while(width-- > 0){ in append_number() 217 int width, in append_string() argument 222 width -= prec; in append_string() 224 width -= strlen((char *)arg); in append_string() 226 while(width-- > 0) in append_string() [all …]
|
| /NextBSD/contrib/libpcap/missing/ |
| HD | snprintf.c | 128 int width, int prec, int flags, int minusp) in append_number() argument 159 width -= len; in append_number() 161 width--; in append_number() 162 while(width-- > 0){ in append_number() 197 width -= len; in append_number() 198 while(width-- > 0){ in append_number() 217 int width, in append_string() argument 222 width -= prec; in append_string() 224 width -= strlen((char *)arg); in append_string() 226 while(width-- > 0) in append_string() [all …]
|
| /NextBSD/lib/libbsdstat/ |
| HD | 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 …]
|
| /NextBSD/sys/net80211/ |
| HD | 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 …]
|
| /NextBSD/lib/libcam/ |
| HD | scsi_cmdparse.c | 108 int width; in do_buff_decode() local 128 (void *)((long)(ARG)), width, \ in do_buff_decode() 184 width = strtol(fmt, &intendp, 10); in do_buff_decode() 186 if (width > 8) in do_buff_decode() 193 value = (bits >> (shift - width)) & in do_buff_decode() 194 mask[width]; in do_buff_decode() 198 shift, bits, value, width, mask[width]); in do_buff_decode() 203 shift -= width; in do_buff_decode() 210 width = strtol(fmt, &intendp, 10); in do_buff_decode() 212 switch(width) { in do_buff_decode() [all …]
|
| /NextBSD/libexec/rtld-elf/ |
| HD | rtld_printf.c | 130 int base, lflag, qflag, tmp, width, ladjust, sharpflag, neg, sign, dot; in kvprintf() local 146 width = 0; in kvprintf() 174 width = va_arg(ap, int); in kvprintf() 175 if (width < 0) { in kvprintf() 177 width = -width; in kvprintf() 199 width = n; in kvprintf() 230 if (!width) in kvprintf() 231 width = 16; in kvprintf() 232 while(width--) { in kvprintf() 236 if (width) in kvprintf() [all …]
|