Lines Matching refs:rp

326 static void rinfo_free(struct runinfo *rp);
2190 struct runinfo *rp;
2214 rp = rinfo_get(0); /* allocating a new runinfo struct */
2219 * is assigned to rp->outfile. Here rp->outfile is not overwritten.
2222 rp->outfile = tempnam(TMPDIR, PFX);
2223 rp->jobtype = e->etype;
2225 rp->jobname = xmalloc(strlen(e->cmd) + 1);
2226 (void) strcpy(rp->jobname, e->cmd);
2228 rp->mailwhendone = 0;
2241 rinfo_free(rp);
2244 rp->jobname = xmalloc(strlen(at_cmdfile) + 1);
2245 (void) strcpy(rp->jobname, at_cmdfile);
2258 rp->mailwhendone = (strcmp(mailvar, "yes") == 0);
2260 rp->mailwhendone = 0;
2301 rinfo_free(rp);
2310 rinfo_free(rp);
2320 rp->pid = rfork;
2321 rp->que = e->etype;
2326 rp->rusr = (e->u);
2327 logit(BCHAR, rp, 0);
2502 if ((fd = open(rp->outfile, O_WRONLY|O_CREAT|O_EXCL, OUTMODE)) == 1)
2626 struct runinfo *rp;
2636 if ((rp = rinfo_get(pid)) == NULL) {
2641 } else if (rp->que == ZOMB) {
2642 (void) unlink(rp->outfile);
2643 rinfo_free(rp);
2645 cleanup(rp, prc);
2894 struct runinfo *rp;
2897 rp = xcalloc(1, sizeof (struct runinfo));
2898 rp->next = rthead; /* link the entry into the list */
2899 rthead = rp;
2900 return (rp);
2903 for (rp = rthead; rp != NULL; rp = rp->next) {
2904 if (rp->pid == pid)
2907 return (rp);
2917 struct runinfo *rp;
2922 for (rpp = &rthead; (rp = *rpp) != NULL; rpp = &rp->next) {
2923 if (rp == entry) {
2924 *rpp = rp->next; /* unlink the entry */
2925 free(rp->outfile);
2926 free(rp->jobname);
2927 free(rp);
3029 logit(int cc, struct runinfo *rp, int rc)
3042 cc, (rp->rusr)->name, rp->pid, QUE(rp->que), timebuf);