Home
last modified time | relevance | path

Searched refs:cfname (Results 1 – 7 of 7) sorted by relevance

/openbsd/usr.sbin/lpd/
H A Dlp_rmjob.c68 active = !strcmp(q.cfname[i], currjob); in lp_rmjob()
73 doremove(ofd, lp, q.cfname[i]); in lp_rmjob()
118 fp = lp_fopen(lp, cfname); in docheck()
120 log_warn("cannot open %s", cfname); in docheck()
147 if (jf->jobs[i] == LP_JOBNUM(cfname)) in docheck()
171 fp = lp_fopen(lp, cfname); in doremove()
173 log_warn("cannot open %s", cfname); in doremove()
181 if (lp_unlink(lp, cfname) == -1) { in doremove()
182 log_warn("cannot unlink %s", cfname); in doremove()
186 log_info("removed job %s", cfname); in doremove()
[all …]
H A Dlp_displayq.c97 active = !strcmp(q.cfname[i], currjob); in lp_displayq()
127 if (jf->jobs[i] == LP_JOBNUM(cfname)) in checklists()
162 const char *cfname, int active) in doshort() argument
172 fp = lp_fopen(lp, cfname); in doshort()
174 log_warn("cannot open %s", cfname); in doshort()
185 if (!checklists(cfname, jf, line + 1)) in doshort()
189 line + 1, LP_JOBNUM(cfname)); in doshort()
224 const char *cfname, int active) in dolong() argument
234 fp = lp_fopen(lp, cfname); in dolong()
236 log_warn("cannot open %s", cfname); in dolong()
[all …]
H A Dengine_lpr.c45 char *cfname; member
553 if (j->cfname) { in lpr_recvjob_cf()
581 free(j->cfname); in lpr_recvjob_cf()
582 j->cfname = NULL; in lpr_recvjob_cf()
660 if (j->cfname) { in lpr_recvjob_clear()
661 j->cfname[0] = 'c'; in lpr_recvjob_clear()
664 j->cfname[0] = 't'; in lpr_recvjob_clear()
667 free(j->cfname); in lpr_recvjob_clear()
668 j->cfname = NULL; in lpr_recvjob_clear()
695 if (!j->cfname) { in lpr_recvjob_commit()
[all …]
H A Dprinter.c258 if (strcmp(curr, q.cfname[jobidx])) in printer()
263 lp_setcurrtask(lp, q.cfname[jobidx]); in printer()
265 r = sendjob(q.cfname[jobidx], retry); in printer()
282 q.cfname[jobidx]); in printer()
367 printjob(const char *cfname, int retry) in printjob() argument
390 fatal("cannot open %s", cfname); in printjob()
506 if (lp_unlink(lp, cfname) == -1) in printjob()
507 log_warn("cannot unlink %s", cfname); in printjob()
743 sendjob(const char *cfname, int retry) in sendjob() argument
762 fatal("cannot open %s", cfname); in sendjob()
[all …]
H A Dlp.c368 q->cfname = calloc(nqe, sizeof(*q->cfname)); in lp_readqueue()
369 if (q->cfname == NULL) { in lp_readqueue()
374 q->cfname[i] = qe[i].name; in lp_readqueue()
395 free(q->cfname[i]); in lp_clearqueue()
396 free(q->cfname); in lp_clearqueue()
H A Dlp.h119 char **cfname; member
/openbsd/usr.sbin/lpr/lpr/
H A Dlpr.c67 static char *cfname; /* daemon control files, linked from tf's */ variable
376 if (link(tfname, cfname) < 0) { in main()
377 warn("cannot rename %s", cfname); in main()
543 if (cfname) in cleanup()
545 unlink(cfname); in cleanup()
546 while (cfname[i]-- != 'A'); in cleanup()
684 cfname = lmktemp("cf", n); in mktemps()
687 } while (stat(tfname, &stb) == 0 || stat(cfname, &stb) == 0 || in mktemps()