Lines Matching refs:hostname
66 {"hostname", optional_argument, NULL, 'h'},
362 s = parse_string(ifo->hostname,
365 syslog(LOG_ERR, "hostname: %m");
368 if (s != 0 && ifo->hostname[0] == '.') {
370 "hostname cannot begin with .");
373 ifo->hostname[s] = '\0';
375 if (ifo->hostname[0] == '\0')
810 gethostname(ifo->hostname, HOSTNAME_MAX_LEN);
811 /* Ensure that the hostname is NULL terminated */
812 ifo->hostname[HOSTNAME_MAX_LEN] = '\0';
813 if (strcmp(ifo->hostname, "(none)") == 0 ||
814 strcmp(ifo->hostname, "localhost") == 0)
815 ifo->hostname[0] = '\0';