Searched refs:nbuf (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/dns/resolv/ |
D | res_query.c | 385 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 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_nquerydomain()
|
D | res_debug.c | 665 static char nbuf[40]; in p_option() local 698 default: snprintf(nbuf, sizeof(nbuf), "?0x%lx?", (u_long)option); in p_option() 699 return (nbuf); in p_option() 708 static char nbuf[40]; /* XXX nonreentrant */ in p_time() local 710 if (ns_format_ttl((u_long)value, nbuf, sizeof nbuf) < 0) in p_time() 711 snprintf(nbuf, sizeof(nbuf), "%u", value); in p_time() 712 return (nbuf); in p_time()
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 2393 char nbuf[MAXDNAME]; in res_querydomainN() local 2394 const char *longname = nbuf; in res_querydomainN() 2411 if (n + 1 > sizeof(nbuf)) { in res_querydomainN() 2416 strncpy(nbuf, name, n); in res_querydomainN() 2417 nbuf[n] = '\0'; in res_querydomainN() 2423 if (n + 1 + d + 1 > sizeof(nbuf)) { in res_querydomainN() 2427 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_querydomainN()
|