Home
last modified time | relevance | path

Searched refs:shostname (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/ppp/
H A Dprompt.c86 static char shostname[MAXHOSTNAMELEN]; in prompt_Display() local
118 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()
/freebsd/sbin/ping/
H A Dping.c166 static char *shostname; variable
558 shostname = source; in ping()
574 shostname = snamebuf; in ping()
826 (void)printf(" from %s", shostname); in ping()