Lines Matching refs:hostbuf
18 static char hostbuf[MAXHOSTNAMELEN+1];
34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
35 hostbuf[sizeof(hostbuf) - 1] = '\0';
36 return hostbuf;
42 strncpy(hostbuf, np->n_name, sizeof(hostbuf));
43 hostbuf[sizeof(hostbuf) - 1] = '\0';
44 return hostbuf;
53 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1);
54 hostbuf[MAXHOSTNAMELEN] = '\0';
55 return hostbuf;