[hacknews] tty include files rationalized

henry@utzoo.UUCP (Henry Spencer) (03/30/85)

The tty-subsystem include files have been rationalized, to eliminate
duplication of information and the bizarre situation of having four (!)
different, inconsistent lists of tty ioctls:  one in the documentation,
two different ones in the user-level and kernel-level include files,
and yet a fourth in the code actually implementing the ioctls.  The
include files are now 100% consistent, the kernel code will be as soon
as we recompile, and the documentation will be as soon as we add entries
for the line-discipline set/get ioctls.

The material from <sgtty.h> is now in a kernel include file of the same
name, to which <sgtty.h> refers.  The kernel tty.h now refers to the
same file to pick up the common material, which has necessitated a few
#defines in the kernel one to resolve inconsistencies in naming.

The only difference user programs should see is that a few more bits of
information, notably the default special characters, now appear when
they pull in <sgtty.h>.  stty(1) and login(1) are being altered to use
this source rather than defining their own.

At the same time, several unused fields have been #ifdefed out of the
kernel tty structure, and the xstate field has been eliminated totally
(its only purpose was to hold a couple of extra state bits, and since
we got rid of the Datakit state bits long ago, there's room in the
regular state field for those).
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry