On Mon, Mar 31, 2014 at 8:14 PM, trifle menot <trifleme...@gmail.com> wrote: > On Tue, Apr 1, 2014 at 3:00 AM, Philip Guenther <guent...@gmail.com> wrote: > >>> Show me where POSIX says VTIME must be an interbyte timer. >> >> http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap11.html#tag_11_01_07 > > I missed that during my search. POSIX says so. OK.
You might also find the text of the rationale for this section to be interesting. Just register (for free) and download the entire spec and search it directly. >> And you *still* haven't provided a clear answer to "what problem are >> you trying to solve?" that doesn't assume the answer. > > You understood the problem well enough to restate it in your own > words. I'm ready to hear your solution. No, you stated that my description was wrong and not what you were looking for on at least one point of behavior. But whatever. I would probably do it by clearing VMIN and VTIME and poll()ing for input with no timeout. Once that returns that there's data available, set VMIN to the desired value and poll() again with the desired timeout. When that returns clear VMIN and do the read(). That perfectly matches the spec inside my head; if it doesn't match the spec inside your head then you should have stated what you were trying to do in your last half dozen messages. Enough wanking. Time to get back to solving *real* problems. Philip Guenther