Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site emory.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!emory!km From: km@emory.UUCP (Ken Mandelberg) Newsgroups: net.unix-wizards Subject: Stty/Gtty on System III and PC/IX? Message-ID: <1483@emory.UUCP> Date: Thu, 28-Mar-85 00:15:56 EST Article-I.D.: emory.1483 Posted: Thu Mar 28 00:15:56 1985 Date-Received: Fri, 29-Mar-85 00:32:55 EST Distribution: net Organization: Math & Computer Science, Emory University, Atlanta Lines: 39 I am trying to understand the formal connection between stty/gtty and system III. Here is my best guess, correct me if I am wrong. Stty and Gtty were system calls on version 7 which had the same effect as TIOCSETP and TIOCGETP ioctls. On System III, the tty driver changed and this time there was no special system call to duplicate the effect of the new ioctls. However, to allow compatability with version 7, a library routine for stty/gtty was supplied to allow old source to still configure the tty with the old sgttyb structure. I guess this because I see stty/gtty in programs with code ifdefed for System III. I don't have any vanilla System III documentation, but I do have PC/IX. There is no mention that I can find in the doc of stty/gtty emulation routines. There is however, a sgtty.h in /usr/include with a sgttyb structure and definitions for the TIOCs. When I try the TIOCGETP it just fails. There is also a gtty.o in /usr/lib/lib2.a. I tried resolving out of here and find that it needs externals that are not in any of the libraries I find. Anyway, my guess is that stty/gtty emulation was supplied with System III but not documented. Then when ISC did the PC/IX port they just left it undocumneted but didn't make it work. Comments? -- Ken Mandelberg Emory University Dept of Math and CS Atlanta, Ga 30322 {akgua,sb1,gatech,decvax}!emory!km USENET km@emory CSNET km.emory@csnet-relay ARPANET