Lines Matching refs:prs
97 notify(register RSTATUS *prs, char *errbuf, int k, int e, int slow) in notify() argument
107 if (!(prs->request->outcome & RS_NOTIFY)) in notify()
110 !(prs->request->actions & (ACT_MAIL|ACT_WRITE|ACT_NOTIFY)) in notify()
111 && !prs->request->alert in notify()
112 && !(prs->request->outcome & RS_CANCELLED) in notify()
120 file = makereqerr(prs); in notify()
122 fdprintf(fd, N_Msg[0], prs->secure->req_id, prs->secure->req_id, in notify()
123 prs->request->destination, in notify()
124 STREQU(prs->request->destination, NAME_ANY)? " printer" in notify()
127 if (prs->request) { in notify()
130 GetRequestFiles(prs->request, file, sizeof(file)); in notify()
133 prs->request->user); in notify()
135 ctime(&prs->secure->date)); in notify()
138 if (prs->request->outcome & RS_PRINTED) in notify()
139 fdprintf(fd, N_Msg[1], prs->printer->printer->name); in notify()
141 if (prs->request->outcome & RS_CANCELLED) in notify()
143 (prs->request->outcome & RS_FAILED)? ", and" in notify()
147 if (prs->request->outcome & RS_FAILED) { in notify()
152 prs->printer->printer->name); in notify()
164 if (prs->request->outcome & RS_CANCELLED) in notify()
169 if (prs->request->outcome & RS_CANCELLED) { in notify()
170 print_reason (fd, prs->reason); in notify()
174 schedule (EV_NOTIFY, prs); in notify()