Home
last modified time | relevance | path

Searched refs:sortlist (Results 1 - 9 of 9) sorted by relevance

/third_party/node/deps/cares/src/lib/
H A Dares_gethostbyname.c52 const struct apattern *sortlist, size_t nsort);
54 const struct apattern *sortlist, size_t nsort);
56 const struct apattern *sortlist, size_t nsort);
58 const struct apattern *sortlist, size_t nsort);
86 sort6_addresses(hostent, ghbn_arg->channel->sortlist, in ares_gethostbyname_callback()
90 sort_addresses(hostent, ghbn_arg->channel->sortlist, in ares_gethostbyname_callback()
129 const struct apattern *sortlist, size_t nsort) in sort_addresses()
145 ind1 = get_address_index(&a1, sortlist, nsort); in sort_addresses()
148 ind2 = get_address_index(&a2, sortlist, nsort); in sort_addresses()
158 /* Find the first entry in sortlist whic
128 sort_addresses(const struct hostent *host, const struct apattern *sortlist, size_t nsort) sort_addresses() argument
161 get_address_index(const struct in_addr *addr, const struct apattern *sortlist, size_t nsort) get_address_index() argument
184 sort6_addresses(const struct hostent *host, const struct apattern *sortlist, size_t nsort) sort6_addresses() argument
217 get6_address_index(const struct ares_in6_addr *addr, const struct apattern *sortlist, size_t nsort) get6_address_index() argument
[all...]
H A Dares_sysconfig_files.c99 static ares_bool_t sortlist_append(struct apattern **sortlist, size_t *nsort, in sortlist_append() argument
104 newsort = ares_realloc(*sortlist, (*nsort + 1) * sizeof(*newsort)); in sortlist_append()
109 *sortlist = newsort; in sortlist_append()
111 memcpy(&(*sortlist)[*nsort], pat, sizeof(**sortlist)); in sortlist_append()
217 ares_status_t ares__parse_sortlist(struct apattern **sortlist, size_t *nsort, in ares__parse_sortlist() argument
225 if (sortlist == NULL || nsort == NULL || str == NULL) { in ares__parse_sortlist()
229 if (*sortlist != NULL) { in ares__parse_sortlist()
230 ares_free(*sortlist); in ares__parse_sortlist()
233 *sortlist in ares__parse_sortlist()
[all...]
H A Dares_options.c50 ares_free(options->sortlist); in ares_destroy_options()
102 options->sortlist = NULL; in ares_save_options()
179 options->sortlist = NULL; in ares_save_options()
181 options->sortlist = ares_malloc(channel->nsort * sizeof(struct apattern)); in ares_save_options()
182 if (!options->sortlist) { in ares_save_options()
186 options->sortlist[i] = channel->sortlist[i]; in ares_save_options()
409 /* copy sortlist */ in ares__init_by_options()
412 channel->sortlist = in ares__init_by_options()
414 if (!channel->sortlist) { in ares__init_by_options()
[all...]
H A Dares_init.c253 channel->sortlist = NULL; in init_by_defaults()
564 struct apattern *sortlist = NULL; in ares_set_sortlist() local
572 status = ares__parse_sortlist(&sortlist, &nsort, sortstr); in ares_set_sortlist()
573 if (status == ARES_SUCCESS && sortlist) { in ares_set_sortlist()
574 if (channel->sortlist) { in ares_set_sortlist()
575 ares_free(channel->sortlist); in ares_set_sortlist()
577 channel->sortlist = sortlist; in ares_set_sortlist()
580 /* Save sortlist as if it was passed in as an option */ in ares_set_sortlist()
H A Dares_sysconfig.c991 ares_free(sysconfig->sortlist); in ares_sysconfig_free()
1032 if (sysconfig->sortlist && !(channel->optmask & ARES_OPT_SORTLIST)) { in ares_sysconfig_apply()
1034 ares_malloc(sizeof(*channel->sortlist) * sysconfig->nsortlist); in ares_sysconfig_apply()
1038 memcpy(temp, sysconfig->sortlist, in ares_sysconfig_apply()
1039 sizeof(*channel->sortlist) * sysconfig->nsortlist); in ares_sysconfig_apply()
1041 ares_free(channel->sortlist); in ares_sysconfig_apply()
1042 channel->sortlist = temp; in ares_sysconfig_apply()
H A Dares_private.h249 struct apattern *sortlist; member
385 struct apattern *sortlist; member
400 ares_status_t ares__parse_sortlist(struct apattern **sortlist, size_t *nsort,
H A Dares_destroy.c97 ares_free(channel->sortlist); in ares_destroy()
/third_party/cares/include/
H A Dares.h275 struct apattern *sortlist; member
/third_party/node/deps/cares/include/
H A Dares.h331 struct apattern *sortlist; member

Completed in 8 milliseconds