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

/bionic/libc/dns/resolv/
H A Dres_query.c385 char nbuf[MAXDNAME]; local
386 const char *longname = nbuf;
406 strncpy(nbuf, name, (size_t)n);
407 nbuf[n] = '\0';
417 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);
H A Dres_debug.c665 static char nbuf[40]; local
698 default: snprintf(nbuf, sizeof(nbuf), "?0x%lx?", (u_long)option);
699 return (nbuf);
708 static char nbuf[40]; /* XXX nonreentrant */ local
710 if (ns_format_ttl((u_long)value, nbuf, sizeof nbuf) < 0)
711 snprintf(nbuf, sizeof(nbuf), "%u", value);
712 return (nbuf);
[all...]
/bionic/libc/dns/net/
H A Dgetaddrinfo.c2433 char nbuf[MAXDNAME]; local
2434 const char *longname = nbuf;
2451 if (n + 1 > sizeof(nbuf)) {
2456 strncpy(nbuf, name, n);
2457 nbuf[n] = '\0';
2463 if (n + 1 + d + 1 > sizeof(nbuf)) {
2467 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);

Completed in 1247 milliseconds