[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stty 0; stty 19200 on modem1, 1 patch...



hello

 found this one while hacking together a modem getty emulation :) for
uucp and faxes... (really just a hack, uses xchat, hackfax and taylor's
own login, uucico -l)

--- biosfs.c_	Tue Aug 17 18:36:18 1993
+++ biosfs.c	Thu Jan 27 10:16:34 1994
@@ -1069,11 +1069,15 @@
 			else
 				oldbaud = baudmap[i];
 			*r = oldbaud;
-			if (newbaud > 0 && newbaud != oldbaud) {
+			if (newbaud > 0) {
 	/* BUG: assert DTR works only on modem1 */
 				if (dev == 1 || dev == 6) {
 					Offgibit(0xef);
 				}
+				if (newbaud == oldbaud) {
+					curproc->bconmap = oldmap;
+					return 0;
+				}
 				for (i = 0; i < MAXBAUD; i++) {
 					if (baudmap[i] == newbaud) {
 						rsconf(i, -1, -1, -1, -1, -1);

 i also found that the first stty 19200 sometimes gets `lost' (leaves
port still at 9600) but i'm not sure yet if thats MiNTs fault or
something else.  workaround: stty 9600; stty 19200...

 (ooh all these hacks, we really need `real' tty devices, for all ports...)
	Juergen
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr
PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA