Searched refs:shostname (Results 1 – 2 of 2) sorted by relevance
86 static char shostname[MAXHOSTNAMELEN]; in prompt_Display() local118 if (*shostname == '\0') { in prompt_Display()121 if (gethostname(shostname, sizeof shostname) || *shostname == '\0') in prompt_Display()122 strcpy(shostname, "localhost"); in prompt_Display()123 else if ((dot = strchr(shostname, '.'))) in prompt_Display()127 fprintf(p->Term, "%s%s%s> ", pconnect, pauth, shostname); in prompt_Display()
166 static char *shostname; variable558 shostname = source; in ping()574 shostname = snamebuf; in ping()826 (void)printf(" from %s", shostname); in ping()