🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.2bsd
Article #196

dz litout bug

#196
From: Jack Nelson
Date: Tue, 03 May 1988 19:08
60 lines
2279 bytes
Index: /usr/src/sys/pdpuba/dz.c 2.10BSD

Description:
	LLITOUT doesn't work for dz board.
Repeat-By:
	Procedure to repeat the problem: try using dz port
	for laser printer with printcap bit set for litout: junk
Fix:
	Description of how to fix the problem: use LITOUT, not LLITOUT
	in dz.c, as the latter is the ioctl version, the former the
	high word constant in the kernel.
	Some of the other pdpuba drivers have the same problem; grep 
	for LLITOUT.
UUCP: { akgua | allegra | cmcl2 | idis | ihnp4 | mi-cec | pitt |
	psuvax1 | sun | sunrise | vax135 } ! cadre ! nelslab ! jack
ARPA: jack@cadre.dsl.pittsburgh.edu
John P. Nelson, M.D., 3811 O'Hara St, Pittsburgh, PA 15213, t:412-624-1769
Dept. of Psychiatry, U. of Pittsburgh
Cut:----------
*** orgs/dz.c	Tue Sep  1 02:00:21 1987
--- dz.c	Wed Dec 16 12:57:41 1987
***************
*** 366,372 ****
  		return;
  	}
  	lpr = (dz_speeds[tp->t_ispeed]<<8) | (unit & 07);
! 	if (tp->t_flags & (RAW|LLITOUT|PASS8))
  		lpr |= BITS8;
  	else
  		lpr |= (BITS7|PENABLE);
--- 366,372 ----
  		return;
  	}
  	lpr = (dz_speeds[tp->t_ispeed]<<8) | (unit & 07);
! 	if (tp->t_flags & (RAW|LITOUT|PASS8))
  		lpr |= BITS8;
  	else
  		lpr |= (BITS7|PENABLE);
***************
*** 426,432 ****
  	}
  	if (tp->t_outq.c_cc == 0)
  		goto out;
! 	if (tp->t_flags & (RAW|LLITOUT))
  		cc = ndqb(&tp->t_outq, 0);
  	else {
  		cc = ndqb(&tp->t_outq, 0200);
--- 426,432 ----
  	}
  	if (tp->t_outq.c_cc == 0)
  		goto out;
! 	if (tp->t_flags & (RAW|LITOUT))
  		cc = ndqb(&tp->t_outq, 0);
  	else {
  		cc = ndqb(&tp->t_outq, 0200);
-- 
John P. Nelson, M.D., 3811 O'Hara St, Pittsburgh, PA 15213, t:412-624-1769 Dept. of Psychiatry, U. of Pittsburgh
UUCP: { akgua | allegra | cmcl2 | idis | ihnp4 | mi-cec | pitt | psuvax1 | sun | sunrise | vax135 } ! cadre ! jack
ARPA: jack@cadre.dsl.pittsburgh.edu
Technical Details
Message-ID: <1161@cadre.dsl.PITTSBURGH.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!agate!ig!uwmcsd1!bbn!rochester!pt.cs.cmu.edu!cadre!jack

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!agate!ig!uwmcsd1!bbn!rochester!pt.cs.cmu.edu!cadre!jack
From: jack@cadre.dsl.PITTSBURGH.EDU (Jack Nelson)
Newsgroups: comp.bugs.2bsd
Subject: dz litout bug
Message-ID: <1161@cadre.dsl.PITTSBURGH.EDU>
Date: 3 May 88 19:08:16 GMT
Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
Lines: 59
Keywords: bug fix