Lines Matching defs:hostname
52 char hostname[MAXHOSTNAMELEN + 1];
55 if (gethostname(hostname, sizeof(hostname)))
57 hostname[sizeof(hostname) - 1] = '\0';
62 * If hostname appears to be fully-qualified,
65 if (strchr(hostname, '.')) {
66 strlcpy(buf, hostname, buflen);
77 error = getaddrinfo(hostname, NULL, &hints, &res);
79 errx(1, "getaddrinfo(%s) failed: %s", hostname,