Requesting help on intricacies of duplicated file descriptors.
Rob Landley
rob at landley.net
Mon Jul 24 13:41:29 UTC 2006
On Saturday 22 July 2006 9:07 pm, Garrett Kajmowicz wrote:
> If I take the following:
>
> fp = fdopen(fileno(stdin)));
>
> Can I have stdin in blocking mode and fp in non-blocking mode?
I believe if you dup(fp) you can set the new fd into a different mode than
stdin, and the two of them still suck from the same char dev.
Try it and see what happens. :)
Rob
--
Never bet against the cheap plastic solution.
More information about the uClibc
mailing list