Lines Matching refs:name

17  * 3. Neither the name of the University nor the names of its contributors
38 * the name of Digital Equipment Corporation not be used in advertising or
259 /* res_send() has already verified that the query name is the
260 * same as the one we sent; this just gets the expanded name
283 cp += n; /* name */
316 /* Get canonical name. */
337 /* Get canonical name. */
511 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen,
522 _DIAGASSERT(name != NULL);
525 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, NETID_UNSET,
532 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, NETID_UNSET,
544 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf,
554 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, NETID_UNSET,
699 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf,
713 _DIAGASSERT(name != NULL);
738 if (!strchr(name, '.') && (cp = res_hostalias(res, name,
740 name = cp;
746 if (isdigit((u_char) name[0]))
747 for (cp = name;; ++cp) {
761 if ((isxdigit((u_char) name[0]) && strchr(name, ':') != NULL) ||
762 name[0] == ':')
763 for (cp = name;; ++cp) {
784 default_dns_files, name, strlen(name), af) != NS_SUCCESS)
800 if (inet_pton(af, name, buf) <= 0) {
808 HENT_SCOPY(hp->h_name, name, buf, buflen);
817 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *hbuf,
825 return gethostbyname_internal_real(name, af, res, hp, hbuf, hbuflen, errorp);
834 name == NULL ? "^" : name,
962 char *p, *name;
1033 if ((cp = strpbrk(name = cp, " \t")) != NULL)
1056 HENT_SCOPY(hent->h_name, name, buf, buflen);
1173 const char *name;
1179 name = va_arg(ap, char *);
1205 n = res_nsearch(res, name, C_IN, type, buf->buf, (int)sizeof(buf->buf));
1212 hp = getanswer(buf, n, name, type, res, info->hp, info->buf,
1474 char name[INET6_ADDRSTRLEN]; /* XXX enough? */
1494 if (inet_ntop(af, uaddr, name, (socklen_t)sizeof(name)) == NULL)
1505 r = yp_match(__ypdomain, map, name,
1506 (int)strlen(name), &ypcurrent, &ypcurrentlen);
1526 const char *name;
1533 name = va_arg(ap, char *);
1550 r = yp_match(__ypdomain, map, name,
1551 (int)strlen(name), &ypcurrent, &ypcurrentlen);
1570 gethostbyname(const char *name)
1575 gethostbyname_r(name, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno);
1580 gethostbyname2(const char *name, int af)
1585 gethostbyname2_r(name, af, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno);
1590 android_gethostbynamefornet(const char *name, int af, unsigned netid, unsigned mark)
1597 hp = gethostbyname_internal(name, af, res, &rs->host, rs->hostbuf, sizeof(rs->hostbuf),