Lines Matching defs:hostname
162 char *hostname;
211 hostname = utsname.nodename;
214 * hostname may still be NULL, depends on when cvcd was started
216 * to get a hostname -> look in the /etc/nodename file.
218 if (!strlen(hostname)) {
220 * try to get the hostname from the /etc/nodename file
221 * we reuse the utsname.nodename buffer here! hostname
227 "failed to acquire hostname");
235 * If all attempts to get the hostname have failed, put something
238 if (!strlen(hostname)) {
261 (void) sprintf(prefix, "%s-(HOSTNAME:%s)", progname, hostname);