Lines Matching defs:hostname
187 * Get the current system NetBIOS name. The hostname is truncated at
223 * If the hostname has been fully-qualified for some reason, the domain
224 * part will be removed. The returned hostname is converted to the
267 * the hostname is fully-qualified, accept it. Otherwise, try to find an
268 * appropriate domain name to append to the hostname.
273 char hostname[MAXHOSTNAMELEN];
276 hostname[0] = '\0';
279 if (smb_gethostname(hostname, MAXHOSTNAMELEN,
286 if (hostname[0] == '\0')
290 (void) strlcpy(buf, hostname, buflen);
294 (void) snprintf(buf, buflen, "%s.%s", hostname, domain);