Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site bu-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!bu-cs!root From: root@bu-cs.UUCP (Barry Shein) Newsgroups: net.micro.att Subject: Re: ATT 3b2 (SVR2) questions Message-ID: <513@bu-cs.UUCP> Date: Sun, 21-Jul-85 13:07:54 EDT Article-I.D.: bu-cs.513 Posted: Sun Jul 21 13:07:54 1985 Date-Received: Tue, 23-Jul-85 04:49:21 EDT References: <746@wlcrjs.UUCP>, <373@cuae2.UUCP> Organization: Boston Univ Comp. Sci. Lines: 41 >From: heiby@cuae2.UUCP (Ron Heiby) >Subject: Re: ATT 3b2 (SVR2) questions > >What you basically want to do is turn off ICANON and set VMIN and VTIME as >your application requires. CBREAK is, I believe, MIN=1, TIME=0. "The MIN ^^^^^^^^^^^^^^^^^^^^^^^^ >and TIME values are stored in the position for the EOF and EOL characters, >respectively. The time value represents tenths of seconds." [FLAME ON] Yeah Ron, I agree wholeheartedly, to quote in full from TERMIO(7): "A read will not be satisfied until at least MIN characters have been received or the timeout value has expired...The MIN and TIME values are in the position for the EOF and EOL characters respectively. The time value represents tenths of seconds." Not too clear is it: Does a zero value in TIME produce non-blocking I/O (timeouts occur immediately?) or should that be -1? or does that end up to be 255 on most machines and then the read times out in 25.5 seconds? Maybe I'll go read the source, but not having a uniform 'no-op' value is a bug in c_cc[]. And I won't even mention how bad an idea it was to put termio into the administrator's manual (hasn't anyone at ATTIS heard of students?) or the fact that those #defines are actually VMIN and VTIME not MIN and TIME (and VEOF, VEOL, you mention this but the man page doesn't) ....oops, guess I just did. I'm not surprised people are confused about this very important section, if they can find it at all. [FLAME OFF] -Barry Shein, Boston University P.S. I am not flaming at Ron, he gave a fine answer under the circumstances, maybe someone who can get this all fixed will do something about it.