Lines Matching refs:fprintf
39 fprintf(stderr, "%s", str); in debug()
45 fprintf(stderr, "timeout occurred, check printer.\n"); in alarmhandler()
60 fprintf(stderr, "lpdsend: copyfile(%d,%d,%ld)\n", in copyfile()
64 fprintf(stderr, "lpdsend: copyfile read %d bytes from %d\n", in copyfile()
70 fprintf(stderr, "write to fd %d failed\n", out); in copyfile()
75 fprintf(stderr, "lpdsend: copyfile wrote %d bytes to %d\n", in copyfile()
80 fprintf(stderr, ": %5.2f%% sent\n", sent*100.0/tosend); in copyfile()
84 fprintf(stderr, "lpdsend: copyfile read %d bytes from %d\n", in copyfile()
102 fprintf(stderr, "no printer name\n"); in killjob()
106 fprintf(stderr, "no user name given\n"); in killjob()
110 fprintf(stderr, "no job to kill\n"); in killjob()
116 fprintf(stderr, "write(printer) error\n"); in killjob()
131 fprintf(stderr, "write(printer) error\n"); in checkqueue()
151 fprintf(stderr, "getack failed: read returned %d, " in getack()
171 fprintf(stderr, "write(printer) error\n"); in sendctrl()
176 fprintf(stderr, "write(printer) error\n"); in sendctrl()
180 fprintf(stderr, "write(printer) error\n"); in sendctrl()
195 fprintf(stderr, "write(printer) error\n"); in senddata()
200 fprintf(stderr, "failed to send file to printer\n"); in senddata()
204 fprintf(stderr, "write(printer) error\n"); in senddata()
207 fprintf(stderr, "%d bytes sent, status: waiting for end of job\n", size); in senddata()
218 fprintf(stderr, "fstat(%s) failed\n", inputname); in sendjob()
224 fprintf(stderr, "write(printer) error\n"); in sendjob()
232 fprintf(stderr, "%ld bytes sent, status: end of job\n", statbuf.st_size); in sendjob()
289 fprintf(stderr, "failed to set alarm handler\n"); in main()
303 fprintf(stderr, "cannot have both -k and -q flags\n"); in main()
311 fprintf(stderr, "cannot have both -q and -k flags\n"); in main()
350 fprintf(stderr, "unknown option %c\n", c); in main()
359 …fprintf(stderr, "usage: to send a job - %s -d printer -H hostname -P username [-s seqno] [-t[cdfgk… in main()
360 fprintf(stderr, " to check status - %s -d printer -q desthost\n", argv[0]); in main()
361 …fprintf(stderr, " to kill a job - %s -d printer -P username -k jobname desthost\n", argv[0]); in main()
374 fprintf(stderr, "open(%s) failed\n", inputname); in main()
382 fprintf(stderr, "open(%s) failed\n", tmpfilename); in main()
390 fprintf(stderr, "failed to copy file to temporary file\n"); in main()
394 fprintf(stderr, "failed to seek back to the beginning of the temporary file\n"); in main()
401 fprintf(stderr, "connecting to %s\n", strbuf); in main()
404 fprintf(stderr, " trying from port %s...", portstr); in main()
408 fprintf(stderr, "connected\n"); in main()
411 fprintf(stderr, "failed\n"); in main()
415 fprintf(stderr, "Cannot open a valid port!\n"); in main()
416 fprintf(stderr, "- All source ports [721-731] may be busy.\n"); in main()
417 fprintf(stderr, "- Is recipient ready and online?\n"); in main()
418 fprintf(stderr, "- If all else fails, cycle the power!\n"); in main()