Lines Matching refs:ppd
65 static int copyPPDFile(char *ppd, char *printersPPD);
66 static int unzipPPDFile(char *ppd, char *printersPPD);
198 if ((prbufp->ppd != NULL) && (ppdopt)) in putprinter()
452 print_str(fdout, HEAD, prbufp->ppd); in putprinter()
553 char *ppd = NULL; in addPrintersPPD() local
571 if ((result == 0) && (prbufp->ppd != NULL)) in addPrintersPPD()
573 ppd = strdup(prbufp->ppd); in addPrintersPPD()
575 if (ppd == NULL) in addPrintersPPD()
583 if (Stat(ppd, &statbuf) == -1) in addPrintersPPD()
590 if (strstr(ppd, PPDZIP) != NULL) in addPrintersPPD()
597 ppd = Realloc(ppd, in addPrintersPPD()
598 strlen(ppd)+strlen(PPDZIP)+2); in addPrintersPPD()
599 if (ppd != NULL) in addPrintersPPD()
601 ppd = strcat(ppd, PPDZIP); in addPrintersPPD()
602 if (Stat(ppd, &statbuf) == -1) in addPrintersPPD()
641 if (strstr(ppd, PPDZIP) == NULL) in addPrintersPPD()
643 result = copyPPDFile(ppd, path); in addPrintersPPD()
647 result = unzipPPDFile(ppd, path); in addPrintersPPD()
654 if (ppd != NULL) in addPrintersPPD()
656 Free(ppd); in addPrintersPPD()
676 copyPPDFile(char *ppd, char *printersPPD) in copyPPDFile() argument
685 if ((ppd != NULL) && (printersPPD != NULL)) in copyPPDFile()
687 if ((fdin = open_locked(ppd, "r", 0)) < 0) in copyPPDFile()
731 unzipPPDFile(char *ppd, char *printersPPD) in unzipPPDFile() argument
741 if ((ppd != NULL) && (printersPPD != NULL)) in unzipPPDFile()
760 strlen(ppd) + in unzipPPDFile()
768 printersPPD, ppd, in unzipPPDFile()