Subject: bin/2565:
To: None <gnats-bugs@NetBSD.ORG>
From: Charles Croot <croot@pokey.Stanford.EDU>
List: netbsd-bugs
Date: 06/22/1996 23:08:54
>Number:         2565
>Category:       bin
>Synopsis:       
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 23 02:35:03 1996
>Last-Modified:
>Originator:     Bill Studenmund
>Organization:
Studenmund Consulting
	
>Release:        <NetBSD-current source date> May 1996 (though present in 1.1 release)
>Environment:
	
System: NetBSD pokey 1.1B NetBSD 1.1B (POKEY) #77: Sun May 26 13:38:17 PDT 1996 croot@pokey:/y1/src11/sys/arch/mac68k/compile/POKEY mac68k


>Description:
	
The only baud rates listed in the baud rate selection table are POSIX-defined
rates. Unfortunately my Deskwriter (and all other DeskWriters) use 57600 as the
data rate. 
>How-To-Repeat:
	
Include a :br#57600: in /etc/printcap
>Fix:
	
I can think of two fixes:

1) have lpd just throw the baud rate into a termios and do a TIOCSETA call
on the tty. If the call succeeds, then the kernel is happy with the baud rate.
If not, then there's a problem.

2) Add B57600 to the table of supported baud rates. Patch enclosed. I've tested it
briefly, and it seems OK.


*** printjob.c.orig	Sat Jun 22 22:40:25 1996
--- printjob.c	Sat Jun 22 22:40:46 1996
***************
*** 1301,1306 ****
--- 1301,1307 ----
  	9600,	B9600,
  	19200,	B19200,
  	38400,	B38400,
+ 	57600,	B57600,
  	0,	0
  };
  
>Audit-Trail:
>Unformatted:
no
lpd does not support non-POSIX printer baud rates thogh many mac printers do