Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix Subject: Re: EOF character changing Message-ID: <1715@rlgvax.UUCP> Date: Fri, 17-Feb-84 00:30:16 EST Article-I.D.: rlgvax.1715 Posted: Fri Feb 17 00:30:16 1984 Date-Received: Sat, 18-Feb-84 03:38:19 EST References: <964@proper.UUCP>, <54400001@hpfcra.UUCP> <1173@cincy.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 18 > System III and friends in raw mode have both a > minimum-character threshold and a time threshold before waking up > the reading process, the intent being a reduction of system load. > Unfortunately, they decided to multiplex the character-count and > time thresholds into already existing variables, namely the EOF and > the BRK (I think) character. So, the ioctl code automatically sets > these fields to the 'appropriate' values when switching between raw > and cooked mode (ICANON mode for those systems). The TCSETA ioctl code doesn't do this (so be warned - if you just turn off ICANON without fiddling VMIN/VEOF and VTIME/VEOL values, you may get a surprise), but the TIOCSETP "backward compatibility" ioctl (which is *not* backward compatible with V7, but with UNIX/TS 1.0, PWB/UNIX 2.0, etc.) does do it when entering/leaving RAW mode. The "stty" command also may be doing it. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy