Stty/Gtty on System III and PC/IX?

Ken Mandelberg km at emory.UUCP
Thu Mar 28 15:15:56 AEST 1985


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 at emory                      CSNET
km.emory at csnet-relay          ARPANET



More information about the Comp.unix.wizards mailing list