From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 9 Jan 1996 10:54:34 -0500 From: G. David Butler gdb@dbSystems.com Subject: lpdaemon and tcpostio bug fixes Topicbox-Message-UUID: 3a08cd92-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960109155434.bR4FVaaTngvonLPnWt9DPX9Du-68-w60hqqNzVb1sIg@z> Just for those of you that were not interested in the subject of a PC parallel port, the message I sent included bug fixes for the tcp printer file transfer program lpdaemon and the tcpostio driver for networked postscript printers. ============================================================= /386/bin/aux/lpdaemon (/sys/src/cmd/lp/lpdaemon.c): diff -e lpdaemon.c.cdrom lpdaemon.c 423a ACK(); . 153c return(fd); . 151d 146c close(fd); if((fd=open(tmpf, 2)) < 0) { . 141c if((fd=creat(tmpf, 0666)) < 0) { . 137,138c char tmpf[100]; int fd; . 92a #else fputs(s1, fp); #endif . 91a #ifndef PLAN9 . 90a #else vfprintf(fp, s1, ap); #endif . 89a #ifndef PLAN9 . 79a #endif . 77a #ifndef PLAN9 . ================================================== /386/bin/aux/tcpostio (/sys/src/cmd/postscript/tcpostio.l): diff -e tcpostio.l.cdrom tcpostio.l 412c fprint(2, ". %5.2f%% sent, %.100s\n", bytes_sent*100.0/bytes_to_send, statusbuf); . 283c blocksize = atoi(av); . 197c byte statusbuf[PRBUFSIZ]; . 177c if (write(printerfd, "\004", 1) != 1) { . 162c if (write(printerfd, "\004", 1) != 1) { . 149c if (write(printerfd, "\024", 1) != 1) { . 123,124c if (*(ke = find(ks, ":")) == '\0') { return(PR_UNKNOWN); } kl = ke - ks; . 120a return(statuslist[i].val); . 117,118c break; . 103c vl = ve - vs; . 91,92c if (*(ke = find(ks, ":")) == '\0') { return(PR_UNKNOWN); } kl = ke - ks; . 59c { nil, PR_UNKNOWN } .