From: Anthony Rumble (arumble@extro.ucc.su.OZ.AU)
Date: 07/19/92


From: arumble@extro.ucc.su.OZ.AU (Anthony Rumble)
Subject: Re: Termios question: Semantics of VMIN/VTIME on Linux/SunOS ?
Date: Sun, 19 Jul 1992 07:19:38 GMT

michael@gandalf.moria (Michael Haardt) writes:

>I have an weird problem:

> struct termios buff;

> tcgetattr(file,&buff);
> buff.c_lflag=0;
> cfsetispeed(&buff,B1200);
> buff.c_cc[VMIN]=5;
> buff.c_cc[VTIME]=1;
> tcsetattr(file,TCSANOW,&buff);

>I am no termios expert, but this code is intended to let a

> read(file,buffer,sizeof(buffer));
>
>read as much characters as available, max sizeof(buffer) and return
>after a short timeout if there are none. Ok?

I was under the impression that this should actually return on
either 5 characters recieved, or sizeof(buffer), or timeout..

-- 
Anthony Rumble
aka SmilieZ
"Anything is possible.. If there is enuf money in it"