Lines Matching refs:prbufp
64 static int addPrintersPPD(char *name, PRINTER *prbufp);
91 putprinter(char *name, PRINTER *prbufp)
123 if (!okprinter(name, prbufp, 1)) {
158 if (prbufp->remote) {
164 if (prbufp->interface && (ignprinter & BAD_INTERFACE) == 0) {
165 if (Stat(prbufp->interface, &statbuf1) == -1)
176 if ((fdin = open_locked(prbufp->interface, "r", 0)) < 0) {
198 if ((prbufp->ppd != NULL) && (ppdopt))
200 if (addPrintersPPD(name, prbufp) != 0)
216 stty = (prbufp->stty? Strdup(prbufp->stty) : 0);
217 if (prbufp->speed)
218 speed = Strdup(prbufp->speed);
222 if (prbufp->dial_info && stty) {
244 * If "prbufp->speed" isn't set, then
250 if (!prbufp->speed) {
271 } else if (!prbufp->dial_info && speed) {
320 if (prbufp->remote && !prtrheadings[fld].okremote)
331 switch (prbufp->banner) {
347 print_sdn(fdout, HEAD, prbufp->cpi);
351 if (!emptylist(prbufp->char_sets))
352 print_l(fdout, HEAD, prbufp->char_sets);
360 print_l(fdout, HEAD, prbufp->input_types);
364 print_str(fdout, HEAD, prbufp->device);
368 print_str(fdout, HEAD, prbufp->dial_info);
372 print_str(fdout, HEAD, prbufp->fault_rec);
376 print_str(fdout, HEAD, prbufp->interface);
380 print_sdn(fdout, HEAD, prbufp->lpi);
384 print_sdn(fdout, HEAD, prbufp->plen);
388 if (prbufp->login & LOG_IN)
401 if (prbufp->printer_type && !prbufp->printer_types)
403 prbufp->printer_type,
408 printer_types = prbufp->printer_types;
415 if (printer_types != prbufp->printer_types)
421 print_str(fdout, HEAD, prbufp->remote);
433 print_sdn(fdout, HEAD, prbufp->pwid);
442 print_l(fdout, HEAD, prbufp->modules);
447 print_l(fdout, HEAD, prbufp->options);
452 print_str(fdout, HEAD, prbufp->ppd);
472 if (prbufp->description) {
477 if (dumpstring(path, prbufp->description) == -1) {
489 prbufp->fault_alert.shcmd
490 && putalert(Lp_A_Printers, name, &(prbufp->fault_alert)) == -1
548 addPrintersPPD(char *name, PRINTER *prbufp)
558 if (prbufp->remote)
571 if ((result == 0) && (prbufp->ppd != NULL))
573 ppd = strdup(prbufp->ppd);