Lines Matching defs:hostname
1 /* xgethostname.c -- return current hostname with unlimited length
49 /* Return the current hostname in malloc'd storage.
55 char *hostname = NULL;
65 hostname = x2realloc (hostname, &size);
67 hostname[size_1 - 1] = '\0';
70 if (gethostname (hostname, size_1) == 0)
72 if (! hostname[size_1 - 1])
80 free (hostname);
86 return hostname;