/freebsd-9.3-release/usr.sbin/sysinstall/ |
H A D | keymap.c | 93 int choice, scroll, curr, max; local 107 if ((choice = keymapSetDefault(prefix)) == -1) 110 if ((choice = keymapSetDefault(prefix)) == -1) { 116 if ((choice = keymapSetDefault(prefix)) == -1) 117 choice = 0; 121 dmenuSetDefaultIndex(&MenuSysconsKeymap, &choice, &scroll, &curr, &max); 122 return dmenuOpen(&MenuSysconsKeymap, &choice, &scroll, &curr, &max, FALSE);
|
H A D | dmenu.c | 213 int choice, scroll, curr, max; local 215 choice = scroll = curr = max = 0; 216 return dmenuOpen(menu, &choice, &scroll, &curr, &max, buttons); 305 dmenuSetDefaultIndex(DMenu *menu, int *choice, int *scroll, int *curr, int *max) argument 315 if (*choice > height) 317 *scroll = MIN(nitem - height, *choice); 318 *choice = *choice - *scroll; 327 int *choice, int *scroll, int *curr, int *max) 329 if ((*choice 326 dmenuSetDefaultItem(DMenu *menu, const char *prompt, const char *title, void *data, int *choice, int *scroll, int *curr, int *max) argument 343 dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max, Boolean buttons) argument [all...] |
H A D | main.c | 56 int choice, scroll, curr, max, status; local 215 choice = scroll = curr = max = 0; 216 dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max, TRUE);
|
/freebsd-9.3-release/usr.sbin/sade/ |
H A D | main.c | 42 int choice, scroll, curr, max, status; local 110 choice = scroll = curr = max = 0; 111 dmenuOpen(&MenuMain, &choice, &scroll, &curr, &max, FALSE);
|
H A D | dmenu.c | 169 int choice, scroll, curr, max; local 171 choice = scroll = curr = max = 0; 172 return dmenuOpen(menu, &choice, &scroll, &curr, &max, buttons); 245 dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max, Boolean buttons) argument 268 (char *)(uintptr_t)buttons, choice, scroll);
|
/freebsd-9.3-release/contrib/dialog/ |
H A D | menubox.c | 79 int choice, 84 int my_y = ItemToRow(choice); 116 int choice, 124 int my_y = ItemToRow(choice); 158 print_tag(win, items, choice, selected, is_inputmenu); 188 int choice, 198 int y = ItemToRow(choice); 209 print_item(win, items, choice, Editing, TRUE); 227 print_item(win, items, choice, Selected, TRUE); 235 handle_button(int code, DIALOG_LISTITEM * items, int choice) argument 77 print_tag(WINDOW *win, DIALOG_LISTITEM * item, int choice, Mode selected, bool is_inputmenu) argument 114 print_item(WINDOW *win, DIALOG_LISTITEM * items, int choice, Mode selected, bool is_inputmenu) argument 186 input_menu_edit(WINDOW *win, DIALOG_LISTITEM * items, int choice, char **resultp) argument 329 int choice = dlg_default_listitem(items); local 791 int choice; local [all...] |
H A D | checklist.c | 48 int choice, 55 (long) (scrollamt + choice), 66 * Print list item. The 'selected' parameter is true if 'choice' is the 73 int choice, 85 (void) wmove(win, choice, 0); 89 (void) wmove(win, choice, check_x); 120 (void) wmove(win, choice, item_x); 182 int choice = dlg_default_listitem(items); local 307 /* ensure we are scrolled to show the current choice */ 308 if (choice > 44 print_arrows(WINDOW *win, int box_x, int box_y, int scrollamt, int choice, int item_no, int list_height) argument 70 print_item(WINDOW *win, DIALOG_LISTITEM * item, const char *states, int choice, int selected) argument [all...] |
H A D | formbox.c | 78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice) argument 107 this_item_attribute = choice 135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice) argument 141 count += print_item(win, item + n, scrollamt, n == choice); 151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable) argument 157 if (!is_readonly(&item[choice])) { 158 result = choice; 199 int *choice, 202 int old_choice = *choice; 208 *choice 195 tab_next(WINDOW *win, DIALOG_FORMITEM item[], int item_no, int stepsize, int *choice, int *scrollamt) argument 260 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt) argument 463 int choice = dlg_default_formitem(items); local 835 int choice; local [all...] |
H A D | mixedform.c | 52 int choice; local 88 &choice); 98 if (USE_ITEM_HELP(listitems[choice].help)) { 99 dlg_add_string(listitems[choice].help); 102 dlg_add_string(listitems[choice].name);
|
H A D | fselect.c | 78 int choice; /* index of the selection */ member in struct:__anon928 96 list->choice = 0; 121 return list->data[list->choice]; 164 if (list->choice < list->offset) { 165 list->offset = list->choice; 167 if (list->choice - list->offset >= high) 168 list->offset = list->choice - high + 1; 177 int choice = list->choice; local 181 list->choice 315 change_list(int choice, LIST * list) argument [all...] |
/freebsd-9.3-release/gnu/lib/libodialog/ |
H A D | checklist.c | 31 static void print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int choice, int selected, dialogMenuItem *me, int list_width, int item_x, int check_x); 43 choice, l, k, scroll, max_choice, item_no = 0, *status; local 60 choice = scroll = button = 0; 175 print_item(list, items[i * 3], items[i * 3 + 1], status[i], i, i == choice, DREF(ditems, i), list_width, item_x, check_x); 199 wmove(list, choice, check_x+1); 212 print_item(list, items[i * 3], items[i * 3 + 1], status[i], i, i == choice, DREF(ditems, i), list_width, item_x, check_x); 215 wmove(list, choice, check_x+1); 295 wmove(list, choice, check_x+1); 304 if (!choice) { 320 wmove(list, choice, check_ 632 print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int choice, int selected, dialogMenuItem *me, int list_width, int item_x, int check_x) argument [all...] |
H A D | menubox.c | 31 static void print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int choice, int selected, dialogMenuItem *me, int menu_width, int tag_x, int item_x); 41 int i, j, x, y, cur_x, cur_y, box_x, box_y, key = 0, button, choice, local 51 choice = ch ? *ch : 0; 164 print_item(menu, items[(scroll + i) * 2], items[(scroll + i) * 2 + 1], i, i == choice, DREF(ditems, scroll + i), menu_width, tag_x, item_x); 207 strcpy(result, items[(scroll + choice) * 2]); 241 if (!choice) { 261 i = choice - 1; 264 if (choice == max_choice - 1) { 265 if (scroll + choice < item_no - 1) { 288 i = choice 443 print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int choice, int selected, dialogMenuItem *me, int menu_width, int tag_x, int item_x) argument [all...] |
H A D | radiolist.c | 31 static void print_item(WINDOW *win, char *tag, char *item, int status, int choice, int selected, dialogMenuItem *me); 46 choice, l, k, scroll, max_choice, *status, item_no = 0, was_on = 0; local 62 button = choice = scroll = 0; 189 print_item(list, items[i * 3], items[i * 3 + 1], status[i], i, i == choice, DREF(ditems, i)); 212 wmove(list, choice, check_x+1); 291 wmove(list, choice, check_x+1); 298 if (!choice) { 314 wmove(list, choice, check_x+1); 321 i = choice - 1; 324 if (choice 599 print_item(WINDOW *win, char *tag, char *item, int status, int choice, int selected, dialogMenuItem *me) argument [all...] |
H A D | tree.c | 75 * if 0 <= choice <= size - pointer to name from names, 77 * else - NULL (recomended choice -1 for it) 81 int size, int choice); 133 int ch; /* saved ch - choice */ 149 static void print_item(WINDOW *win, struct leaf item, int choice, int selected); 172 int i, j, x, y, cur_x, cur_y, box_x, box_y, key = 0, button = 0, choice = 0, local 177 choice = *ch; 264 print_item(menu, items[(scroll+i)], i, i == choice); 267 print_position(dialog, box_x+menu_width, box_y+menu_height, scroll+choice, item_no); 284 if (!choice) { 480 print_item(WINDOW *win, struct leaf item, int choice, int selected) argument 570 int retcode, choice, size; local 626 int retcode, choice; local 1072 free_names(unsigned char **names, int size, int choice) argument [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/x509v3/ |
H A D | v3_asid.c | 107 ASIdentifierChoice *choice, 112 if (choice == NULL) 115 switch (choice->type) { 120 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) { 122 sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); 200 ASIdentifierChoice **choice; 205 choice = &asid->asnum; 208 choice = &asid->rdi; 213 if (*choice == NULL) { 214 if ((*choice [all...] |
/freebsd-9.3-release/usr.sbin/bsdinstall/partedit/ |
H A D | gpart_ops.c | 101 int choice; local 102 choice = dlg_checklist("UFS Options", "", 0, 0, 0, 105 if (choice == 1) /* Cancel */ 134 int choice; local 135 choice = dlg_checklist("FAT Options", "", 0, 0, 0, 138 if (choice == 1) /* Cancel */ 164 int cancel, choice; local 188 sizeof(items) / sizeof(items[0]), items, &choice, NULL); 194 if (!is_scheme_bootable(items[choice].name)) { 198 "to proceed?", items[choice] 421 int hadlabel, choice, junk, nitems; local 754 int nitems, choice, junk; local [all...] |
H A D | part_wizard.c | 196 int choice; local 231 choice = dialog_yesno("Partition", message, 0, 0); 237 if (choice == 1 && scheme != NULL && !is_scheme_bootable(scheme)) { 255 if (scheme == NULL || choice == 0) { 258 choice = dialog_yesno("Confirmation", "This will erase " 260 if (choice != 0) 275 choice /* Non-interactive for "Entire Disk" */); local
|
/freebsd-9.3-release/games/fortune/fortune/ |
H A D | fortune.c | 959 int choice; local 964 choice = arc4random_uniform(100); 965 DPRINTF(1, (stderr, "choice = %d\n", choice)); 967 if (choice < fp->percent) 970 choice -= fp->percent; 972 " skip \"%s\", %d%% (choice = %d)\n", 973 fp->name, fp->percent, choice)); 976 "using \"%s\", %d%% (choice = %d)\n", 977 fp->name, fp->percent, choice)); 1022 int choice; local [all...] |
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/ |
H A D | main.c | 6 * This software is available to you under a choice of one of two 360 uint32_t i, choice = 0; local 416 printf("\nEnter choice (1-%u): ", i); 418 if (scanf("%u", &choice)) { 419 if (choice > num_ports || choice < 1) { 420 printf("\nError: Lame choice!\n"); 423 choice--; 429 printf("\nError: Lame choice!\n"); 434 cl_ntoh64(attr_array[choice] [all...] |
/freebsd-9.3-release/contrib/ofed/management/opensm/libvendor/ |
H A D | osm_vendor_mtl_hca_guid.c | 6 * This software is available to you under a choice of one of two 552 uint32_t choice = 0; local 604 printf("\nEnter choice (1-%u): ", i); 606 scanf("%u", &choice); 607 if (choice > num_ports) 608 printf("\nError: Lame choice!\n"); 615 attr_array[choice - 1].port_guid, 624 return (attr_array[choice - 1].port_guid);
|
/freebsd-9.3-release/contrib/xz/src/liblzma/lzma/ |
H A D | lzma_decoder.c | 37 rc_if_0(ld.choice, seq ## _CHOICE) { \ 38 rc_update_0(ld.choice); \ 43 rc_update_1(ld.choice); \ 115 rc_if_0(ld.choice, seq ## _CHOICE) { \ 116 rc_update_0(ld.choice); \ 122 rc_update_1(ld.choice); \ 156 probability choice; member in struct:__anon4523 904 bit_reset(coder->match_len_decoder.choice); 906 bit_reset(coder->rep_len_decoder.choice);
|
H A D | lzma_encoder_private.h | 41 probability choice; member in struct:__anon4525
|
H A D | lzma_encoder.c | 83 const uint32_t a0 = rc_bit_0_price(lc->choice); 84 const uint32_t a1 = rc_bit_1_price(lc->choice); 114 rc_bit(rc, &lc->choice, 0); 117 rc_bit(rc, &lc->choice, 1); 456 bit_reset(lencoder->choice);
|
/freebsd-9.3-release/contrib/bmake/mk/ |
H A D | sys.dependfile.mk | 34 # Normally the 1st entry is our default choice
|
/freebsd-9.3-release/usr.sbin/kbdmap/ |
H A D | kbdmap.c | 382 char choice[64]; local 383 if (fgets(choice, sizeof(choice), fp) != NULL) { 386 if (!strcmp(choice, km_sorted[i]->desc)) { 640 /* 4) Your choice if it exists
|