Lines Matching refs:nodeptr

82     node_t *nodeptr;  in main()  local
98 nodeptr = NULL; in main()
204 node_t *nodeptr; in check_rand() local
206 for (i = 0, nodeptr = nodelink; nodeptr != NULL; nodeptr = nodeptr->next) in check_rand()
211 for (i = 0, nodeptr = nodelink; ((nodeptr != NULL) && (i != g)); in check_rand()
212 nodeptr = nodeptr->next) in check_rand()
215 return(nodeptr); in check_rand()
230 node_t *nodeptr; local
239 for (nodeptr = nodelink; nodeptr != NULL; nodeptr = nodeptr->next)
240 if (strlen(nodeptr->name) > maxnodelen)
241 maxnodelen = strlen(nodeptr->name);
273 nodeptr = check_rand();
275 while (!test_node_connection(rshport, porttimeout, nodeptr)) {
276 fprintf(stderr, "Skipping down node %s.\n", nodeptr->name);
277 nodeptr = check_rand();
288 nodeptr = check_rand();
291 nodeptr)) {
293 nodeptr->name);
294 nodeptr = check_rand();
299 printf("Working node: %s\n", nodeptr->name);
303 if (pipe(nodeptr->out.fds) != 0)
305 if (pipe(nodeptr->err.fds) != 0)
307 nodeptr->childpid = fork();
309 switch (nodeptr->childpid) {
315 if (dup2(nodeptr->out.fds[1], STDOUT_FILENO) != STDOUT_FILENO)
317 if (dup2(nodeptr->err.fds[1], STDERR_FILENO) != STDERR_FILENO)
319 if (close(nodeptr->out.fds[0]) != 0)
321 if (close(nodeptr->err.fds[0]) != 0)
324 fdf = fcntl(nodeptr->out.fds[0], F_GETFL);
325 fcntl(nodeptr->out.fds[0], F_SETFL, fdf|O_NONBLOCK);
326 fdf = fcntl(nodeptr->err.fds[0], F_GETFL);
327 fcntl(nodeptr->err.fds[0], F_SETFL, fdf|O_NONBLOCK);
330 (void)snprintf(buf, MAXBUF, "%s@%s", username, nodeptr->name);
332 (void)snprintf(buf, MAXBUF, "%s", nodeptr->name);
348 if (close(nodeptr->out.fds[1]) != 0)
350 if (close(nodeptr->err.fds[1]) != 0)
352 fda = fdopen(nodeptr->out.fds[0], "r"); /* stdout */
355 fd = fdopen(nodeptr->err.fds[0], "r"); /* stderr */
358 fds[0].fd = nodeptr->out.fds[0];
359 fds[1].fd = nodeptr->err.fds[0];
378 nodeptr->name, cd);
393 nodeptr->name, cd);