9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* lpdaemon and tcpostio bug fixes
@ 1996-01-09 15:54 G.David
  0 siblings, 0 replies; only message in thread
From: G.David @ 1996-01-09 15:54 UTC (permalink / raw)


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 }
.






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-01-09 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-01-09 15:54 lpdaemon and tcpostio bug fixes G.David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).