Lines Matching refs:job

112 	struct jobs *job;  in yppush_show_status()  local
114 job = yppush_joblist; in yppush_show_status()
116 while (job != NULL) { in yppush_show_status()
117 if (job->tid == tid) in yppush_show_status()
119 job = job->next; in yppush_show_status()
122 if (job == NULL) { in yppush_show_status()
128 if (job->polled) { in yppush_show_status()
136 job->tid); in yppush_show_status()
141 job->map, job->server, status == YPXFR_SUCC ? in yppush_show_status()
148 job->polled = 1; in yppush_show_status()
150 svc_unregister(job->prognum, 1); in yppush_show_status()
279 yppush_send_xfr(struct jobs *job) in yppush_send_xfr() argument
313 req.map_parms.map = job->map; in yppush_send_xfr()
314 req.transid = job->tid; in yppush_send_xfr()
315 req.prog = job->prognum; in yppush_send_xfr()
316 req.port = job->port; in yppush_send_xfr()
319 if ((clnt = clnt_create(job->server, YPPROG, YPVERS, "udp")) == NULL) { in yppush_send_xfr()
320 yp_error("%s: %s",job->server,clnt_spcreateerror("couldn't \ in yppush_send_xfr()
324 job->stat = YPPUSH_NOHOST; in yppush_send_xfr()
327 job->stat = YPPUSH_PMAP; in yppush_send_xfr()
330 job->stat = YPPUSH_RPC; in yppush_send_xfr()
348 yp_error("%s: %s", job->server, clnt_sperror(clnt, in yppush_send_xfr()
350 job->stat = YPPUSH_YPSERV; in yppush_send_xfr()
372 struct jobs *job; in yp_push() local
377 if ((job = (struct jobs *)malloc(sizeof (struct jobs))) == NULL) { in yp_push()
398 job->stat = 0; in yp_push()
399 job->tid = tid; in yp_push()
400 job->port = xprt->xp_port; in yp_push()
401 job->server = strdup(server); in yp_push()
402 job->map = strdup(map); in yp_push()
403 job->prognum = prognum; in yp_push()
404 job->polled = 0; in yp_push()
405 job->next = yppush_joblist; in yp_push()
406 yppush_joblist = job; in yp_push()
418 if (yppush_send_xfr(job)){ in yp_push()
420 yppush_show_status(job->stat ? job->stat : in yp_push()
421 YPPUSH_YPSERV,job->tid); in yp_push()