Searched refs:c_hostname (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/hostname/
H A Dhostname.c67 char c_hostname[MAXHOSTNAMELEN]; local
93 if (gethostname(c_hostname, sizeof (c_hostname)) < 0) {
100 c_hostname[strcspn(c_hostname, ".")] = '\0';
101 (void) fprintf(stdout, "%s\n", c_hostname);

Completed in 62 milliseconds