Lines Matching refs:hostbuf
3431 myhostname(hostbuf, size) in myhostname() argument
3432 char hostbuf[]; in myhostname()
3437 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3438 (void) sm_strlcpy(hostbuf, "localhost", size);
3439 hp = sm_gethostbyname(hostbuf, InetMode);
3449 hp = sm_gethostbyname(hostbuf, AF_INET);
3454 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, '.') == NULL)
3455 (void) cleanstrcpy(hostbuf, hp->h_name, size);
3458 if (strchr(hostbuf, '.') == NULL)
3465 strlen(domainname) + strlen(hostbuf) + 1 < size)
3466 (void) sm_strlcat2(hostbuf, ".", domainname, size);
3475 if (strchr(hostbuf, '.') == NULL)
3483 (void) cleanstrcpy(hostbuf, *ha, size - 1);
3484 hostbuf[size - 1] = '\0';
3499 if (strchr(hostbuf, '.') == NULL &&
3500 getcanonname(hostbuf, size, true, NULL) == HOST_NOTFOUND)
3504 hostbuf);
3506 hostbuf);
3508 if (getcanonname(hostbuf, size, true, NULL) == HOST_NOTFOUND)
3512 hostbuf);
3514 hostbuf);