Searched refs:nbuf (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/netbsd/resolv/ |
D | res_query.c | 375 char nbuf[MAXDNAME]; in res_nquerydomain() local 376 const char *longname = nbuf; in res_nquerydomain() 396 strncpy(nbuf, name, (size_t)n); in res_nquerydomain() 397 nbuf[n] = '\0'; in res_nquerydomain() 407 sprintf(nbuf, "%s.%s", name, domain); in res_nquerydomain()
|
D | res_debug.c | 611 static char nbuf[40]; in p_option() local 644 default: sprintf(nbuf, "?0x%lx?", (u_long)option); in p_option() 645 return (nbuf); in p_option() 654 static char nbuf[40]; /* XXX nonreentrant */ in p_time() local 656 if (ns_format_ttl((u_long)value, nbuf, sizeof nbuf) < 0) in p_time() 657 sprintf(nbuf, "%u", value); in p_time() 658 return (nbuf); in p_time()
|
/bionic/libc/netbsd/net/ |
D | getaddrinfo.c | 2402 char nbuf[MAXDNAME]; in res_querydomainN() local 2403 const char *longname = nbuf; in res_querydomainN() 2420 if (n + 1 > sizeof(nbuf)) { in res_querydomainN() 2425 strncpy(nbuf, name, n); in res_querydomainN() 2426 nbuf[n] = '\0'; in res_querydomainN() 2432 if (n + 1 + d + 1 > sizeof(nbuf)) { in res_querydomainN() 2436 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_querydomainN()
|