[mod.unix] Unix Technical Digest V2 #5

netnews@wnuxb.UUCP (Heiby) (05/21/85)

Unix Technical Digest       Tue, 21 May 85       Volume  2 : Issue   5

Today's Topics:
                     CTS/RTS handshaking on UNIX
                           dynamic loading.
         Sys5 -> 4.2bsd conversion (tty driver stuff, no :-))
----------------------------------------------------------------------

Date: Thu, 16 May 85 20:47:44 edt
From: Chris Torek <seismo!chris@maryland>
Subject: CTS/RTS handshaking on UNIX

In order to get flow control in the other direction to work (ie., when
the device drops carrier/CTS, make Unix stop sending) you may have to
fix your device driver.  In particular, the 4.2BSD DH/DM and DMF32
drivers don't support MDMBUF.

(The changes shown will make 4.2 twiddle the DTR line when in tandem and
mdmbuf modes.)

Chris

[Ed note: I think we beat this one to death, now.  Let's move on.  RWH.]

------------------------------

Date: Thu, 16 May 85 14:23:46 edt
From: Stephen Daniel <ihnp4!seismo!mcnc!swd>
Subject: dynamic loading.

I have posted our code for dynamic loading to mod.sources

	Stephen Daniel
	decvax!mcnc!swd

------------------------------

Date: Mon, 20 May 85 13:38:56 edt
From: allegra!phri!root (Charlie Root)
Subject: Sys5 -> 4.2bsd conversion (tty driver stuff, no :-))

	I'm trying to port some stuff from Sys5 to 4.2bsd (the graf
package, in particular).  The biggest problem so far is the tty driver
stuff.

	I've figured out how to translate most of the Sys5 structure
elements and modes to their 4.2 equivalents, but am stumped by the
following fragment (from ...../graf/src/dev.d/tek4000.d/lib/tekinit.c,
around line 20).  Tm.raw is a strucure of type sgttyb (nee termio).  Can I
just say "tm.raw.sg_flags |= RAW", or is this too drastic?

	tm.raw.c_iflag = 0;
	tm.raw.c_oflag = OPOST|ONLCR;
	tm.raw.c_cflag &= ~(PARENB | CSIZE);
	tm.raw.c_cflag |= CS8;
	tm.raw.c_lflag = 0;
	tm.raw.c_cc[4] = 10;
	tm.raw.c_cc[5] = 1;

allegra!phri!roy (Roy Smith)
System Administrator, Public Health Research Institute

------------------------------

End of Unix Technical Digest
******************************
-- 
Ronald W. Heiby / netnews@wnuxb.UUCP | unix-request@cbosgd.UUCP
AT&T Information Systems, Inc., Lisle, IL  (CU-D21)