Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/dns/resolv/
Dres_query.c385 char nbuf[MAXDNAME]; in res_nquerydomain() local
386 const char *longname = nbuf; in res_nquerydomain()
406 strncpy(nbuf, name, (size_t)n); in res_nquerydomain()
407 nbuf[n] = '\0'; in res_nquerydomain()
417 sprintf(nbuf, "%s.%s", name, domain); in res_nquerydomain()
Dres_debug.c673 static char nbuf[40]; in p_option() local
706 default: sprintf(nbuf, "?0x%lx?", (u_long)option); in p_option()
707 return (nbuf); in p_option()
716 static char nbuf[40]; /* XXX nonreentrant */ in p_time() local
718 if (ns_format_ttl((u_long)value, nbuf, sizeof nbuf) < 0) in p_time()
719 sprintf(nbuf, "%u", value); in p_time()
720 return (nbuf); in p_time()
/bionic/libc/dns/net/
Dgetaddrinfo.c2401 char nbuf[MAXDNAME]; in res_querydomainN() local
2402 const char *longname = nbuf; in res_querydomainN()
2419 if (n + 1 > sizeof(nbuf)) { in res_querydomainN()
2424 strncpy(nbuf, name, n); in res_querydomainN()
2425 nbuf[n] = '\0'; in res_querydomainN()
2431 if (n + 1 + d + 1 > sizeof(nbuf)) { in res_querydomainN()
2435 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_querydomainN()