Requesting help on intricacies of duplicated file descriptors.
Rich Felker
dalias at aerifal.cx
Mon Jul 24 22:09:18 UTC 2006
On Mon, Jul 24, 2006 at 05:05:13PM +0200, Joakim Tjernlund wrote:
> > Instead, what is my best approach to read a minimum of 1 byte
> > from the stream,
> > blocking only if needed to get that first byte?
>
> hmm, check termios(VMIN and VTIME)
This only applies if the stream is a tty. But yes, these settings may
need to be correct in order to obtain the desired behavior from ttys.
Rich
More information about the uClibc
mailing list