Lines Matching refs:name
129 const char *name, /* domain name */ in res_nquery() argument
146 printf(";; res_query(%s, %d, %d)\n", name, class, type); in res_nquery()
149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery()
223 const char *name, /* domain name */ in res_nsearch() argument
241 for (cp = name; *cp != '\0'; cp++) in res_nsearch()
244 if (cp > name && *--cp == '.') in res_nsearch()
248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch()
258 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch()
294 ret = res_nquerydomain(statp, name, *domain, in res_nsearch()
351 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch()
379 const char *name, in res_nquerydomain() argument
392 name, domain?domain:"<Nil>", class, type); in res_nquerydomain()
399 n = strlen(name); in res_nquerydomain()
405 if (n >= 0 && name[n] == '.') { in res_nquerydomain()
406 strncpy(nbuf, name, (size_t)n); in res_nquerydomain()
409 longname = name; in res_nquerydomain()
411 n = strlen(name); in res_nquerydomain()
417 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_nquerydomain()
423 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) { in res_hostalias() argument