Xref: utzoo comp.unix.microport:1883 comp.unix.xenix:3774 Path: utzoo!attcan!uunet!lll-winken!lll-crg.llnl.gov!bowles From: bowles@lll-crg.llnl.gov (Jeff A. Bowles) Newsgroups: comp.unix.microport,comp.unix.xenix Subject: Re: "UNIX Programming on the 80286/80386" Keywords: This Book Raises Some Questions about Line Disciplines Message-ID: <13398@lll-winken.llnl.gov> Date: 27 Oct 88 17:25:54 GMT References: <322@cocktrice.UUCP> Sender: usenet@lll-winken.llnl.gov Reply-To: bowles@lll-crg.llnl.gov.UUCP (Jeff A. Bowles) Organization: Lawrence Livermore National Laboratory Lines: 29 In article <322@cocktrice.UUCP> mdm@cocktrice.UUCP (Mike Mitchell) writes: >I have recently acquired a copy of the book "UNIX Programming on the >80286/80386" by Alan Deikman, and this book raises some questions for >me. > >In looking at the code, however, there are some calls to routines which >manipulate the line discipline found in System V >on what these routines expect for arguments and what the expected results >are. I am quoting from "Unix(r) System V Release 3 Block and Character Interface (BCI) Driver Development Guide," (AT&T Select Code 307-191), page 7-4: "A line discipline contains functions for opening/closing/reading writing/ input/output control/data receive interrupts, data transmit interrupts/modem interrupts. Each of these activities is defined by individual members of the linesw (line switch) structure found in conf.h. The primary functions involved in writing a line discipline are: canon ttin ttout ttxput." This discussion continues for about 10-15 pages and has lots of pretty pictures and some useful info. This is the document AT&T offered for $4 before someone realized that there was a price error in their database and they changed the price to about $80(!). I ordered BEFORE the change, but they charged my AmEx account the higher price - I'll let 'em slug it out. Be warned, though. Jeff Bowles