Lines Matching refs:name

16  * 3. Neither the name of the project nor the names of its contributors
212 const char *name; /* domain name */
257 "Temporary failure in name resolution", /* EAI_AGAIN */
259 "Non-recoverable failure in name resolution", /* EAI_FAIL */
484 // char *ai_canonname; /* canonical name for hostname */
736 * hostname as alphabetical name.
962 * the canonical name, based on a
983 * the canonical name, based on a
1350 /* res_send() has already verified that the query name is the
1351 * same as the one we sent; this just gets the expanded name
1372 cp += n; /* name */
1392 /* Get canonical name. */
1875 const char *name;
1882 name = va_arg(ap, char *);
1885 //fprintf(stderr, "_dns_getaddrinfo() name = '%s'\n", name);
1907 q.name = name;
1920 q2.name = name;
1935 q.name = name;
1942 q.name = name;
1968 if (res_searchN(name, &q, res) < 0) {
1974 ai = getanswer(buf, q.n, q.name, q.qtype, pai);
1981 ai = getanswer(buf2, q2.n, q2.name, q2.qtype, pai);
2028 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2037 // fprintf(stderr, "_gethtent() name = '%s'\n", name);
2038 assert(name != NULL);
2068 if (strcasecmp(name, tname) == 0)
2097 const char *name;
2103 name = va_arg(ap, char *);
2106 // fprintf(stderr, "_files_getaddrinfo() name = '%s'\n", name);
2111 while ((p = _gethtent(&hostf, name, pai)) != NULL) {
2137 res_queryN(const char *name, /* domain name */ struct res_target *target,
2147 assert(name != NULL);
2168 printf(";; res_nquery(%s, %d, %d)\n", name, class, type);
2171 n = res_nmkquery(res, QUERY, name, class, type, NULL, 0, NULL,
2242 res_searchN(const char *name, struct res_target *target, res_state res)
2250 assert(name != NULL);
2258 for (cp = name; *cp; cp++)
2261 if (cp > name && *--cp == '.')
2265 //fprintf(stderr, "res_searchN() name = '%s'\n", name);
2270 if (!dots && (cp = __hostalias(name)) != NULL) {
2276 * If there are dots in the name already, let's just give it a try
2281 ret = res_querydomainN(name, NULL, target, res);
2308 ret = res_querydomainN(name, *domain, target, res);
2314 * If name isn't found in this domain,
2322 * but try the input name below in case it's
2358 * if we have not already tried the name "as is", do that now.
2360 * name or whether it ends with a dot.
2363 ret = res_querydomainN(name, NULL, target, res);
2386 * Perform a call on res_query on the concatenation of name and domain,
2387 * removing a trailing dot from name if domain is NULL.
2390 res_querydomainN(const char *name, const char *domain,
2397 assert(name != NULL);
2403 name, domain?domain:"<Nil>");
2410 n = strlen(name);
2415 if (n > 0 && name[--n] == '.') {
2416 strncpy(nbuf, name, n);
2419 longname = name;
2421 n = strlen(name);
2427 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);