Home
last modified time | relevance | path

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]; in main() local
93 if (gethostname(c_hostname, sizeof (c_hostname)) < 0) { in main()
100 c_hostname[strcspn(c_hostname, ".")] = '\0'; in main()
101 (void) fprintf(stdout, "%s\n", c_hostname); in main()