Symbol: choice
bin/rm/rm.c
498
} *choice, choices[] = {
bin/rm/rm.c
559
for (choice = choices; choice->str != NULL; choice++) {
bin/rm/rm.c
560
if (len == 1 && choice->ch == answer[0])
bin/rm/rm.c
562
if (strncasecmp(answer, choice->str, len) == 0)
bin/rm/rm.c
570
if (choice->perm)
bin/rm/rm.c
571
perm_answer = choice->res;
bin/rm/rm.c
572
return (choice->res);
crypto/libressl/crypto/x509/x509_asid.c
293
i2r_ASIdentifierChoice(BIO *out, ASIdentifierChoice *choice, int indent,
crypto/libressl/crypto/x509/x509_asid.c
298
if (choice == NULL)
crypto/libressl/crypto/x509/x509_asid.c
301
switch (choice->type) {
crypto/libressl/crypto/x509/x509_asid.c
306
for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges);
crypto/libressl/crypto/x509/x509_asid.c
309
sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i);
crypto/libressl/crypto/x509/x509_asid.c
393
ASIdentifierChoice **choice;
crypto/libressl/crypto/x509/x509_asid.c
398
choice = &asid->asnum;
crypto/libressl/crypto/x509/x509_asid.c
401
choice = &asid->rdi;
crypto/libressl/crypto/x509/x509_asid.c
406
if (*choice == NULL) {
crypto/libressl/crypto/x509/x509_asid.c
407
if ((*choice = ASIdentifierChoice_new()) == NULL)
crypto/libressl/crypto/x509/x509_asid.c
409
if (((*choice)->u.inherit = ASN1_NULL_new()) == NULL)
crypto/libressl/crypto/x509/x509_asid.c
411
(*choice)->type = ASIdentifierChoice_inherit;
crypto/libressl/crypto/x509/x509_asid.c
413
return (*choice)->type == ASIdentifierChoice_inherit;
crypto/libressl/crypto/x509/x509_asid.c
423
ASIdentifierChoice **choice;
crypto/libressl/crypto/x509/x509_asid.c
429
choice = &asid->asnum;
crypto/libressl/crypto/x509/x509_asid.c
432
choice = &asid->rdi;
crypto/libressl/crypto/x509/x509_asid.c
437
if (*choice != NULL && (*choice)->type == ASIdentifierChoice_inherit)
crypto/libressl/crypto/x509/x509_asid.c
439
if (*choice == NULL) {
crypto/libressl/crypto/x509/x509_asid.c
440
if ((*choice = ASIdentifierChoice_new()) == NULL)
crypto/libressl/crypto/x509/x509_asid.c
442
(*choice)->u.asIdsOrRanges = sk_ASIdOrRange_new(ASIdOrRange_cmp);
crypto/libressl/crypto/x509/x509_asid.c
443
if ((*choice)->u.asIdsOrRanges == NULL)
crypto/libressl/crypto/x509/x509_asid.c
445
(*choice)->type = ASIdentifierChoice_asIdsOrRanges;
crypto/libressl/crypto/x509/x509_asid.c
461
if (!(sk_ASIdOrRange_push((*choice)->u.asIdsOrRanges, aor)))
crypto/libressl/crypto/x509/x509_asid.c
494
ASIdentifierChoice_is_canonical(ASIdentifierChoice *choice)
crypto/libressl/crypto/x509/x509_asid.c
504
if (choice == NULL || choice->type == ASIdentifierChoice_inherit)
crypto/libressl/crypto/x509/x509_asid.c
510
if (choice->type != ASIdentifierChoice_asIdsOrRanges ||
crypto/libressl/crypto/x509/x509_asid.c
511
sk_ASIdOrRange_num(choice->u.asIdsOrRanges) == 0)
crypto/libressl/crypto/x509/x509_asid.c
517
for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; i++) {
crypto/libressl/crypto/x509/x509_asid.c
518
ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
520
ASIdOrRange *b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
567
i = sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1;
crypto/libressl/crypto/x509/x509_asid.c
569
ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
602
ASIdentifierChoice_canonize(ASIdentifierChoice *choice)
crypto/libressl/crypto/x509/x509_asid.c
612
if (choice == NULL || choice->type == ASIdentifierChoice_inherit)
crypto/libressl/crypto/x509/x509_asid.c
618
if (choice->type != ASIdentifierChoice_asIdsOrRanges ||
crypto/libressl/crypto/x509/x509_asid.c
619
sk_ASIdOrRange_num(choice->u.asIdsOrRanges) == 0) {
crypto/libressl/crypto/x509/x509_asid.c
627
sk_ASIdOrRange_sort(choice->u.asIdsOrRanges);
crypto/libressl/crypto/x509/x509_asid.c
633
for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; i++) {
crypto/libressl/crypto/x509/x509_asid.c
634
ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
636
ASIdOrRange *b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
716
(void)sk_ASIdOrRange_delete(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
726
i = sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1;
crypto/libressl/crypto/x509/x509_asid.c
728
ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges,
crypto/libressl/crypto/x509/x509_asid.c
739
if (!ASIdentifierChoice_is_canonical(choice))
games/fortune/fortune/fortune.c
1009
int choice;
games/fortune/fortune/fortune.c
1012
choice = arc4random_uniform(parent->num_children);
games/fortune/fortune/fortune.c
1014
choice, parent->num_children));
games/fortune/fortune/fortune.c
1015
for (fp = parent->child; choice--; fp = fp->next)
games/fortune/fortune/fortune.c
1022
choice = arc4random_uniform(parent->tbl.str_numstr);
games/fortune/fortune/fortune.c
1024
choice, parent->tbl.str_numstr));
games/fortune/fortune/fortune.c
1025
for (fp = parent->child; (unsigned int)choice >= fp->tbl.str_numstr;
games/fortune/fortune/fortune.c
1027
choice -= fp->tbl.str_numstr;
games/fortune/fortune/fortune.c
1029
fp->name, fp->tbl.str_numstr, choice));
games/fortune/fortune/fortune.c
947
int choice;
games/fortune/fortune/fortune.c
952
choice = arc4random_uniform(100);
games/fortune/fortune/fortune.c
953
DPRINTF(1, (stderr, "choice = %d\n", choice));
games/fortune/fortune/fortune.c
955
if (choice < fp->percent)
games/fortune/fortune/fortune.c
958
choice -= fp->percent;
games/fortune/fortune/fortune.c
961
fp->name, fp->percent, choice));
games/fortune/fortune/fortune.c
964
fp->name, fp->percent, choice));
games/fortune/fortune/fortune.c
971
choice = arc4random_uniform(Noprob_tbl.str_numstr);
games/fortune/fortune/fortune.c
972
DPRINTF(1, (stderr, "choice = %d (of %u) \n", choice,
games/fortune/fortune/fortune.c
974
while ((unsigned int)choice >= fp->tbl.str_numstr) {
games/fortune/fortune/fortune.c
975
choice -= fp->tbl.str_numstr;
games/fortune/fortune/fortune.c
980
choice));
usr.sbin/kbdmap/kbdmap.c
381
char choice[64];
usr.sbin/kbdmap/kbdmap.c
382
if (fgets(choice, sizeof(choice), fp) != NULL) {
usr.sbin/kbdmap/kbdmap.c
385
if (!strcmp(choice, km_sorted[i]->desc)) {
usr.sbin/ppp/bundle.c
1933
struct datalink *dl, *choice, *otherlinkup;
usr.sbin/ppp/bundle.c
1935
choice = otherlinkup = NULL;
usr.sbin/ppp/bundle.c
1940
if (choice)
usr.sbin/ppp/bundle.c
1941
otherlinkup = choice;
usr.sbin/ppp/bundle.c
1942
choice = dl;
usr.sbin/ppp/bundle.c
1946
choice = dl;
usr.sbin/ppp/bundle.c
1951
choice = NULL;
usr.sbin/ppp/bundle.c
1957
if (choice) {
usr.sbin/ppp/bundle.c
1960
percent, choice->name);
usr.sbin/ppp/bundle.c
1961
datalink_Up(choice, 1, 1);
usr.sbin/ppp/bundle.c
1965
percent, choice->name);
usr.sbin/ppp/bundle.c
1966
datalink_Close(choice, CLOSE_STAYDOWN);
usr.sbin/tzsetup/tzsetup.c
133
int i, result, choice = 0;
usr.sbin/tzsetup/tzsetup.c
176
dialog_vars.default_item = listitems[choice].name;
usr.sbin/tzsetup/tzsetup.c
178
menu_height, item_no, listitems, &choice, NULL);
usr.sbin/tzsetup/tzsetup.c
184
if (ditems[choice].fire != NULL) {
usr.sbin/tzsetup/tzsetup.c
187
status = ditems[choice].fire(ditems + choice);