Lines Matching refs:rhost
54 static void notify(char *file, char *rhost, struct namelist *to, time_t lmod);
60 static void doarrow(char **filev, struct namelist *files, char *rhost,
62 static int makeconn(char *rhost);
172 doarrow(filev, files, rhost, cmds)
175 char *rhost;
184 printf("doarrow(%x, %s, %x)\n", files, rhost, cmds);
194 printf("updating host %s\n", rhost);
199 if (!makeconn(rhost))
235 notify(Tmpfile, rhost, sc->sc_args, 0);
272 * Create a connection to the rdist server on the machine rhost.
275 makeconn(rhost)
276 char *rhost;
286 printf("makeconn(%s)\n", rhost);
289 if (strcmp(cur_host, rhost) == 0)
293 cur_host = rhost;
294 cp = index(rhost, '@');
299 strncpy(tuser, rhost, sizeof (tuser)-1);
301 rhost = cp + 1;
310 printf("updating host %s\n", rhost);
343 status = kcmd(&rem, &rhost, port,
431 rem = rcmd_af(&rhost, port, user, ruser, buf, 0, AF_INET6);
670 * rhost == NULL if we are mailing a list of changes compared to at time
674 notify(file, rhost, to, lmod)
675 char *file, *rhost;
687 if (rhost)
688 printf("@%s ", rhost);
721 if (!any('@', to->n_name) && rhost != NULL)
722 fprintf(pf, " %s@%s", to->n_name, rhost);
727 if (!any('@', to->n_name) && rhost != NULL)
728 fprintf(pf, ", %s@%s", to->n_name, rhost);
734 if (rhost != NULL)
736 host, rhost);