Lines Matching refs:ahost
96 extern int rcmd(char **ahost, unsigned short rport, const char *locuser, const char *remuser, const char *cmd, int *fd2p)
119 hp = gethostbyname(*ahost);
122 fprintf(stderr, "%s: %s\n", *ahost,
126 fprintf(stderr, "%s: unknown host\n", *ahost);
130 *ahost = hp->h_name;
285 perror(*ahost);
384 char ahost[MAXHOSTNAMELEN];
389 while (fgets(ahost, sizeof (ahost), hostf)) {
391 p = strchr (ahost, '#');
393 p = ahost;
411 if ('+' == ahost[0] && '\0' == ahost[1] )
419 if ('-' == ahost[0] && '\0' == ahost[1] )
429 if ('-' == ahost[0] && '@' != ahost[1]
430 && _checkhost(rhost, &ahost[1], baselen))
433 if ('-' == ahost[0] && '@' == ahost[1] && '\0' != ahost[2]
434 && _checknetgrouphost(rhost, &ahost[2], baselen))
445 if ('+' == ahost[0] && '@' == ahost[1] && '\0' != ahost[2])
446 hostvalid = _checknetgrouphost(rhost, &ahost[2], baselen);
448 hostvalid = _checkhost(rhost, ahost, baselen);
459 hostvalid = hostvalid ? 1 : _checkhost(rhost, ahost, baselen);