Lines Matching refs:ifp
370 submit_job(papi_service_t svc, FILE *ifp, char *printer, int rid, char *cf,
380 char *host = remote_host_name(ifp);
406 receive_control_file(papi_service_t svc, FILE *ifp, FILE *ofp, int size)
419 if (((rc = fread(ptr, 1, size, ifp)) == 0) &&
420 (feof(ifp) != 0)) {
430 if (fgetc(ifp) != 0) {
440 receive_data_file(FILE *ifp, FILE *ofp, int size)
455 if (((rc = fread(buf, 1, rc, ifp)) == 0) &&
456 (feof(ifp) != 0)) {
479 if (fgetc(ifp) != 0) {
489 berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer)
497 while (fgets(buf, sizeof (buf), ifp) != NULL) {
516 cf = receive_control_file(svc, ifp, ofp, atoi(&buf[1]));
521 status = submit_job(svc, ifp, printer, rid, cf,
528 file = receive_data_file(ifp, ofp, atoi(&buf[1]));
544 status = submit_job(svc, ifp, printer, rid, cf, files);
552 berkeley_transfer_files(papi_service_t svc, FILE *ifp, FILE *ofp,
569 status = berkeley_receive_files(svc, ifp, ofp, printer);
635 FILE *ifp = stdin;
688 if (fgets(buf, sizeof (buf), ifp) == NULL) {
689 if (feof(ifp) == 0)
734 (void) papiServiceSetPeer(svc, fileno(ifp));
741 status = berkeley_transfer_files(svc, ifp, ofp, printer);
754 char *host = remote_host_name(ifp);