| /netbsd-src/sys/arch/i386/stand/lib/ |
| H A D | bootmenu.c | 80 int choice, usedef; in getchoicefrominput() 82 choice = -1; in getchoicefrominput() 86 choice = def; in getchoicefrominput() 89 choice = (*input) - 'A'; in getchoicefrominput() 91 choice = (*input) - 'a'; in getchoicefrominput() 93 choice = atoi(input) - 1; in getchoicefrominput() 94 if (choice < 0 || choice >= bootcfg_info.nummenu) in getchoicefrominput() 95 choice = -1; in getchoicefrominput() 100 choice in getchoicefrominput() 78 int choice, usedef; getchoicefrominput() local 104 docommandchoice(int choice) docommandchoice() argument 134 int choice; doboottypemenu() local [all...] |
| /netbsd-src/sys/stand/efiboot/ |
| H A D | bootmenu.c | 83 int choice, usedef; in getchoicefrominput() local 85 choice = -1; in getchoicefrominput() 89 choice = def; in getchoicefrominput() 92 choice = (*input) - 'A'; in getchoicefrominput() 94 choice = (*input) - 'a'; in getchoicefrominput() 96 choice = atoi(input) - 1; in getchoicefrominput() 97 if (choice < 0 || choice >= bootcfg_info.nummenu) in getchoicefrominput() 98 choice = -1; in getchoicefrominput() 103 choice = -1; in getchoicefrominput() 105 return choice; in getchoicefrominput() [all …]
|
| /netbsd-src/sys/arch/zaurus/stand/zboot/ |
| H A D | bootmenu.c | 54 int choice = -1; in getchoicefrominput() local 57 choice = def; in getchoicefrominput() 59 choice = (*input) - 'A'; in getchoicefrominput() 61 choice = (*input) - 'a'; in getchoicefrominput() 63 choice = atoi(input) - 1; in getchoicefrominput() 64 if (choice < 0 || choice >= bootcfg_info.nummenu) in getchoicefrominput() 65 choice = -1; in getchoicefrominput() 67 return choice; in getchoicefrominput() 74 int choice; in doboottypemenu() local 79 for (choice = 0; choice < bootcfg_info.nummenu; choice++) in doboottypemenu() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| H A D | v3_asid.c | 63 ASIdentifierChoice *choice, 68 if (choice == NULL) 71 switch (choice->type) { 76 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) { 78 sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); 156 ASIdentifierChoice **choice; in X509v3_asid_add_inherit() local 161 choice = &asid->asnum; in X509v3_asid_add_inherit() 164 choice = &asid->rdi; in X509v3_asid_add_inherit() 169 if (*choice == NULL) { in X509v3_asid_add_inherit() 170 if ((*choice = ASIdentifierChoice_new()) == NULL) in X509v3_asid_add_inherit() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509v3/ |
| H A D | v3_asid.c | 62 ASIdentifierChoice *choice, 67 if (choice == NULL) 70 switch (choice->type) { 75 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) { 77 sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); 155 ASIdentifierChoice **choice; in X509v3_asid_add_inherit() local 160 choice = &asid->asnum; in X509v3_asid_add_inherit() 163 choice = &asid->rdi; in X509v3_asid_add_inherit() 168 if (*choice == NULL) { in X509v3_asid_add_inherit() 169 if ((*choice = ASIdentifierChoice_new()) == NULL) in X509v3_asid_add_inherit() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tune/ |
| H A D | speed.c | 575 struct choice_t *choice; variable 629 want_data |= ((choice[i].p->flag & FLAG_NODATA) == 0); in run_one() 662 s->r = choice[i].r; in run_one() 663 choice[i].time = speed_measure (choice[i].p->fun, s); in run_one() 664 choice[i].no_time = (choice[i].time == -1.0); in run_one() 665 if (! choice[i].no_time) in run_one() 666 choice[i].time *= choice[i].scale; in run_one() 672 t = choice[i].time; in run_one() 675 if (choice[i].prev_time == -1.0) in run_one() 676 choice[i].no_time = 1; in run_one() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| H A D | template.c | 375 const struct asn1_template *choice = t->ptr; in _asn1_decode() local 376 unsigned int *element = DPO(data, choice->offset); in _asn1_decode() 383 for (i = 1; i < A1_HEADER_LEN(choice) + 1; i++) { in _asn1_decode() 385 ret = _asn1_decode(choice[i].ptr, 0, p, len, in _asn1_decode() 386 DPO(data, choice[i].offset), &datalen); in _asn1_decode() 395 if (i >= A1_HEADER_LEN(choice) + 1) { in _asn1_decode() 396 if (choice->tt == 0) in _asn1_decode() 401 DPO(data, choice->tt), &datalen); in _asn1_decode() 668 const struct asn1_template *choice = t->ptr; in _asn1_encode() local 669 const unsigned int *element = DPOC(data, choice->offset); in _asn1_encode() [all …]
|
| H A D | fuzzer.c | 576 const struct asn1_template *choice = t->ptr; in _asn1_encode_fuzzer() local 577 const unsigned int *element = DPOC(data, choice->offset); in _asn1_encode_fuzzer() 581 if (*element > A1_HEADER_LEN(choice)) { in _asn1_encode_fuzzer() 588 DPOC(data, choice->tt), &datalen); in _asn1_encode_fuzzer() 590 choice += *element; in _asn1_encode_fuzzer() 591 el = DPOC(data, choice->offset); in _asn1_encode_fuzzer() 592 ret = _asn1_encode_fuzzer(choice->ptr, p, len, el, &datalen); in _asn1_encode_fuzzer() 720 const struct asn1_template *choice = t->ptr; in _asn1_length_fuzzer() local 721 const unsigned int *element = DPOC(data, choice->offset); in _asn1_length_fuzzer() 723 if (*element > A1_HEADER_LEN(choice)) in _asn1_length_fuzzer() [all …]
|
| /netbsd-src/external/mit/isl/dist/ |
| H A D | isl_arg.c | 27 *(unsigned *)(((char *)opt) + arg->offset) = arg->u.choice.default_value; in set_default_choice() 409 for (i = 0; decl->u.choice.choice[i].name; ++i) in print_default_choice() 410 if (decl->u.choice.choice[i].value == *p) { in print_default_choice() 411 s = decl->u.choice.choice[i].name; in print_default_choice() 428 for (i = 0; decl->u.choice.choice[i].name; ++i) { in print_choice_help() 433 printf("%s", decl->u.choice.choice[i].name); in print_choice_help() 434 pos += strlen(decl->u.choice.choice[i].name); in print_choice_help() 808 const char *choice; in parse_choice_option() local 810 choice = skip_name(decl, arg[0], prefixes, 0, &has_argument); in parse_choice_option() 811 if (!choice) in parse_choice_option() [all …]
|
| /netbsd-src/games/fortune/fortune/ |
| H A D | fortune.c | 924 int choice; in get_fort() local 929 choice = arc4random_uniform(100); in get_fort() 930 DPRINTF(1, (stderr, "choice = %d\n", choice)); in get_fort() 932 if (choice < fp->percent) in get_fort() 935 choice -= fp->percent; in get_fort() 938 fp->name, fp->percent, choice)); in get_fort() 942 fp->name, fp->percent, choice)); in get_fort() 949 choice = arc4random_uniform(Noprob_tbl.str_numstr); in get_fort() 950 DPRINTF(1, (stderr, "choice = %d (of %d) \n", choice, in get_fort() 952 while ((u_int32_t)choice >= fp->tbl.str_numstr) { in get_fort() [all …]
|
| /netbsd-src/external/mit/isl/dist/include/isl/ |
| H A D | arg.h | 65 struct isl_arg_choice *choice; member 69 } choice; member 140 .u = { .choice = { .choice = c, .default_value = d, \ 149 .u = { .choice = { .choice = c, .default_value = d, \ 159 .u = { .choice = { .choice = c, .default_value = d, \ 168 .u = { .choice = { .choice = c, .default_value = d, \
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/ |
| H A D | shuffle_fuzz.py | 51 (width, element_type) = random.choice( 55 (width, element_type) = random.choice( 60 width = random.choice([2, 4, 8, 16, 32, 64]) 61 element_type = random.choice(element_types) 107 else random.choice(range(shuffle_range))
|
| H A D | abtest.py | 288 choice = (basename, (file_a, file_b)) 289 choices.append(choice) 343 choice = name, (candidate_a, candidate_b) 344 choices.append(choice)
|
| H A D | shuffle_select_fuzz_tester.py | 244 num_elts = random.choice(range(2, 65)) 250 width = random.choice(int_elt_widths) 253 width = random.choice(float_elt_widths) 308 op2 = random.choice(inputs)
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-ndb/ |
| H A D | search.cpp | 60 ber_tag_t choice = f->f_choice; in ndb_filter_check() local 63 if ( choice & SLAPD_FILTER_UNDEFINED ) { in ndb_filter_check() 64 choice &= SLAPD_FILTER_MASK; in ndb_filter_check() 67 switch( choice ) { in ndb_filter_check() 93 if ( choice == LDAP_FILTER_EQUALITY ) in ndb_filter_check() 116 ber_tag_t choice = f->f_choice; in ndb_filter_set() local 119 if ( choice & SLAPD_FILTER_UNDEFINED ) { in ndb_filter_set() 120 choice &= SLAPD_FILTER_MASK; in ndb_filter_set() 123 switch( choice ) { in ndb_filter_set() 134 sf->begin( choice == LDAP_FILTER_OR ? NdbScanFilter::OR : NdbScanFilter::AND ); in ndb_filter_set() [all …]
|
| /netbsd-src/external/public-domain/xz/dist/src/liblzma/lzma/ |
| H A D | lzma_decoder.c | 43 rc_if_0(ld.choice, seq ## _CHOICE) { \ 44 rc_update_0(ld.choice); \ 49 rc_update_1(ld.choice); \ 121 rc_if_0(ld.choice, seq ## _CHOICE) { \ 122 rc_update_0(ld.choice); \ 128 rc_update_1(ld.choice); \ 162 probability choice; member 910 bit_reset(coder->match_len_decoder.choice); in lzma_decoder_reset() 912 bit_reset(coder->rep_len_decoder.choice); in lzma_decoder_reset()
|
| H A D | lzma_encoder.c | 83 const uint32_t a0 = rc_bit_0_price(lc->choice); in length_update_prices() 84 const uint32_t a1 = rc_bit_1_price(lc->choice); in length_update_prices() 114 rc_bit(rc, &lc->choice, 0); in length() 117 rc_bit(rc, &lc->choice, 1); in length() 456 bit_reset(lencoder->choice); in length_encoder_reset()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/ |
| H A D | comparison.d | 248 foreach (index, choice; choices) in castSwitch() 250 result &= is(ReturnType!choice == void); in castSwitch() 260 foreach (index, choice; choices) in castSwitch() 262 static assert(isCallable!choice, in castSwitch() 265 alias choiceParameterTypes = Parameters!choice; in castSwitch() 285 static if (is(ReturnType!(choice) == void)) in castSwitch() 287 choice(cast(CastClass) switchObject); in castSwitch() 299 return choice(cast(CastClass) switchObject); in castSwitch() 306 foreach (choice; choices) in castSwitch() 308 alias choiceParameterTypes = Parameters!choice; in castSwitch() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/algorithm/ |
| H A D | comparison.d | 248 foreach (index, choice; choices) in castSwitch() 250 result &= is(ReturnType!choice : void); // void or noreturn in castSwitch() 259 foreach (index, choice; choices) in castSwitch() 261 static assert(isCallable!choice, in castSwitch() 264 alias choiceParameterTypes = Parameters!choice; in castSwitch() 284 static if (is(ReturnType!(choice) == void)) in castSwitch() 286 choice(cast(CastClass) switchObject); in castSwitch() 298 return choice(cast(CastClass) switchObject); in castSwitch() 305 foreach (choice; choices) in castSwitch() 307 alias choiceParameterTypes = Parameters!choice; in castSwitch() [all …]
|
| /netbsd-src/external/mit/isl/dist/m4/ |
| H A D | ax_submodule.m4 | 4 m4_if(m4_bregexp($2,|,choice),choice,
|
| /netbsd-src/external/bsd/tmux/dist/ |
| H A D | window-customize.c | 659 const char **choice, *text, *name; in window_customize_draw_option() local 748 for (choice = oe->choices; *choice != NULL; choice++) { in window_customize_draw_option() 749 strlcat(choices, *choice, sizeof choices); in window_customize_draw_option() 1016 u_int choice; in window_customize_set_option() local 1087 choice = options_get_number(oo, name); in window_customize_set_option() 1088 if (oe->choices[choice + 1] == NULL) in window_customize_set_option() 1089 choice = 0; in window_customize_set_option() 1091 choice++; in window_customize_set_option() 1092 options_set_number(oo, name, choice); in window_customize_set_option()
|
| /netbsd-src/external/apache2/llvm/dist/clang/utils/ |
| H A D | modfuzz.py | 110 i = random.choice(list(range(len(m)))) 148 d = random.choice([decl for decl in decls if decl.valid(model)])
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblber/ |
| H A D | decode.c | 378 const enum bgbvc choice; member 430 switch (b->choice) { in ber_get_stringbvl() 458 switch (b->choice) { in ber_get_stringbvl() 484 if (b->choice != BvOff) { /* BvOff does not have LBER_BV_ALLOC set */ in ber_get_stringbvl() 486 switch(b->choice) { in ber_get_stringbvl()
|
| /netbsd-src/external/gpl2/groff/dist/arch/misc/ |
| H A D | shdeps.sh | 58 # (The value required is dependent on the user's choice of shell,\\
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/ |
| H A D | typed.d | 196 foreach (i, choice; Stride2!Policies) in TypedAllocator() 198 static if (!match(choice, flags)) in TypedAllocator()
|