Lines Matching refs:ndomains

101                              x->ndomains > -1 && \
157 channel->ndomains = -1; in ares_init_options()
240 if (channel->ndomains != -1) in ares_init_options()
241 ares_strsplit_free(channel->domains, channel->ndomains); in ares_init_options()
399 if (channel->ndomains) { in ares_save_options()
400 options->domains = ares_malloc(channel->ndomains * sizeof(char *)); in ares_save_options()
404 for (i = 0; i < channel->ndomains; i++) in ares_save_options()
406 options->ndomains = i; in ares_save_options()
412 options->ndomains = channel->ndomains; in ares_save_options()
507 if ((optmask & ARES_OPT_DOMAINS) && channel->ndomains == -1) in init_by_options()
510 if (options->ndomains > 0) in init_by_options()
512 channel->domains = ares_malloc(options->ndomains * sizeof(char *)); in init_by_options()
515 for (i = 0; i < options->ndomains; i++) in init_by_options()
517 channel->ndomains = i; in init_by_options()
523 channel->ndomains = options->ndomains; in init_by_options()
565 if (localdomain && channel->ndomains == -1) in init_by_environment()
1477 if (channel->ndomains == -1 && get_SuffixList_Windows(&line)) in init_by_resolv_conf()
1574 if (channel->ndomains == -1) in init_by_resolv_conf()
1633 if (channel->ndomains == -1) { in init_by_resolv_conf()
1642 channel->ndomains = entries; in init_by_resolv_conf()
1643 for (int i = 0; i < channel->ndomains; ++i) { in init_by_resolv_conf()
1675 update_domains = (channel->ndomains == -1); in init_by_resolv_conf()
1897 if (channel->ndomains == -1) { in init_by_defaults()
1902 channel->ndomains = 0; /* default to none */ in init_by_defaults()
1907 channel->ndomains = 0; /* default to none */ in init_by_defaults()
1952 channel->ndomains = 1; in init_by_defaults()
2287 if(channel->ndomains != -1) { in set_search()
2290 ares_strsplit_free(channel->domains, channel->ndomains); in set_search()
2292 channel->ndomains = -1; in set_search()
2296 channel->ndomains = (int)cnt; in set_search()
2297 if (channel->domains == NULL || channel->ndomains == 0) { in set_search()
2299 channel->ndomains = -1; in set_search()