Tty characters 'undefined' value revisited

dce at mips.UUCP dce at mips.UUCP
Tue Jan 27 03:57:45 AEST 1987


A couple of weeks ago, I submitted an article discussing a problem with
the 4.xBSD tty characters (<ttychars.h>, struct ttychars). Basically,
the problem is that the 4.3BSD documentation says that a value of -1
means 'undefined', but our compilers generate unsigned characters.

The general concensus of the responses I got is that the ttychars
structure should be changed so that all of the members are shorts or
ints instead of chars.

Can anyone think of a reason NOT to do this? Are there places where
these values are expected to be chars, and will broken by this change?

-- 
			David Elliott

UUCP: 	{decvax,ucbvax,ihnp4}!decwrl!mips!dce, DDD:  	408-720-1700



More information about the Comp.unix.questions mailing list