On Mon, Dec 5, 2016 at 10:03 AM, Michael Forney <mfor...@mforney.org> wrote:
> This would eliminate the extra copies, but we still have the issue of
> doing fread repeated reads until the passed in buffer is completely
> filled before we are able to write anything. Run something like make
> 2>&1 | cat, and you will see the output only appear in large chunks.
>

I don't know what design decisions might have lead to the current situation.

> I guess my main point with this patch set is, we shouldn't be using
> the terrible stdio API and suffering from its shortcomings when a
> plain read and write work just as well if not better...
>

For educational purposes, stdio is probably the way to go.
Proceed, though, +1.

cheers!
mar77i

Reply via email to