Lines Matching refs:lpfile

550 	char lpfile[BUFSIZ];
594 snprintf(lpfile, sizeof (lpfile), "%s%s-%d",
596 status = copy_file(files[i], lpfile);
600 files[i], lpfile, strerror(errno));
604 addlist(&(request->file_list), lpfile);
614 snprintf(lpfile, sizeof (lpfile), "%s%s-%s",
616 status = psm_copy_attrsToFile(job_attributes, lpfile);
619 lpfile, strerror(errno));
625 snprintf(lpfile, sizeof (lpfile), "%s-0", request_id);
626 if (putrequest(lpfile, request) < 0) {
628 lpfile, strerror(errno));
633 status = lpsched_commit_job(svc, lpfile, &tmp);
635 unlink(lpfile);
668 char lpfile[BUFSIZ];
741 snprintf(lpfile, sizeof (lpfile), "%s%s-%s",
743 status = psm_copy_attrsToFile(job_attributes, lpfile);
746 lpfile, strerror(errno));
752 snprintf(lpfile, sizeof (lpfile), "%s-0", request_id);
753 if (putrequest(lpfile, request) < 0) {
755 lpfile, strerror(errno));
760 status = lpsched_commit_job(svc, lpfile, &tmp);
762 unlink(lpfile);
821 char lpfile[BUFSIZ];
842 snprintf(lpfile, sizeof (lpfile), "/var/spool/lp/temp/%s-1",
844 s->fd = open(lpfile, O_WRONLY);
845 addlist(&(s->request->file_list), lpfile);
854 snprintf(lpfile, sizeof (lpfile), "%s%s-%s",
856 status = psm_copy_attrsToFile(job_attributes, lpfile);
859 lpfile, strerror(errno));
867 snprintf(lpfile, sizeof (lpfile), "%s-0", request_id);
868 s->meta_data_file = strdup(lpfile);
869 if (putrequest(lpfile, s->request) < 0) {
871 lpfile, strerror(errno));
1157 char lpfile[BUFSIZ];
1197 snprintf(lpfile, sizeof (lpfile), "%s%d-%s",
1199 status = psm_modifyAttrsFile(attributes, lpfile);
1203 lpfile, strerror(errno));