Lines Matching refs:hostbuf
3219 myhostname(hostbuf, size) in myhostname() argument
3220 char hostbuf[]; in myhostname()
3225 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3226 (void) sm_strlcpy(hostbuf, "localhost", size);
3227 hp = sm_gethostbyname(hostbuf, InetMode);
3237 hp = sm_gethostbyname(hostbuf, AF_INET);
3242 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, '.') == NULL)
3243 (void) cleanstrcpy(hostbuf, hp->h_name, size);
3246 if (strchr(hostbuf, '.') == NULL)
3253 strlen(domainname) + strlen(hostbuf) + 1 < size)
3254 (void) sm_strlcat2(hostbuf, ".", domainname, size);
3263 if (strchr(hostbuf, '.') == NULL)
3271 (void) cleanstrcpy(hostbuf, *ha, size - 1);
3272 hostbuf[size - 1] = '\0';
3287 if (strchr(hostbuf, '.') == NULL &&
3288 !getcanonname(hostbuf, size, true, NULL))
3292 hostbuf);
3294 hostbuf);
3296 if (!getcanonname(hostbuf, size, true, NULL))
3300 hostbuf);
3302 hostbuf);