lkml.org 
[lkml]   [2005]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: termios VMIN and VTIME behavior
From
Date
On Maw, 2005-11-22 at 20:32 -0800, Mike Voytovich wrote:
> Please disregard - the user app was reading less than VMIN in the read()
> call, so I suppose the current behavior in that case would be correct
> (returning immediately with the number of bytes passed into read()
> rather than waiting for VMIN or VTIME to be met before returning).
>
> It doesn't appear that the behavior in this case is explicitly defined
> by POSIX, but it seems like a reasonable thing to do.

Its pretty well defined. It was designed to optimise block serial
operations (uucp and the like)

VMIN - number of bytes you expect this packet
VTIME - when to give up waiting

The form 0, VTIME also being used to do polling on old SYSV that lacked
select/poll

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-23 11:45    [W:0.046 / U:1.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site