Bug#1839: Getty doesn't work at high speeds
Package: miscutils
Subject:
Important getty patch
Date:
Fri, 10 Nov 1995 09:41:00 -0600 (CST)
From:
Jeff <jeff@mrsagw.mrsa.com>
To:
bruce@pixar.com
Here's a quick 'n simple patch to allow getty to work with serial port
speeds above 38400. This is important when you consider that serial boards
not based on 8250/16x50 chips won't work with the setserial program.
Kermit and Minicom were updated ages ago, but for some reason agetty was
left behind. In any case, current C libraries support speeds up to
230,400 bps.
I hope this can make it into miscutils soon.
Thanks,
Jeff
PS - my normal email address is <jeff@router.patch.net>, but due to
SprintLink's colossal problems I haven't been able to get this message
through to Pixar for over 3 days... Incoming mail is fine.
--- getty.c-old Wed Nov 8 19:22:19 1995
+++ getty.c Thu Nov 9 14:23:44 1995
@@ -697,7 +697,8 @@
char *zpeedz[] = { "0", "50", "75", "110", "134.5",
"150", "200", "300", "600", "1200",
"1800", "2400", "4800", "9600",
- "19200", "38400" };
+ "19200", "38400", "57600", "115200",
+ "230400" };
(void) printf ("%s", zpeedz[tp->c_cflag & CBAUD]);
break;
@@ -981,6 +982,15 @@
#endif
#ifdef B38400
38400, B38400,
+#endif
+#ifdef B57600
+ 57600, B57600,
+#endif
+#ifdef B115200
+ 115200, B115200,
+#endif
+#ifdef B230400
+ 230400, B230400,
#endif
#ifdef EXTA
19200, EXTA,
--
See Pixar's "Toy Story", at a theater near you starting November 22.
"Toy Story" Toys and Soundtrack Album are available now!
Reply to: