From: Paul Brannan Date: 2002-06-21T23:15:35+09:00 Subject: Re: Why is I/O slow? On Fri, Jun 21, 2002 at 05:13:40PM +0900, Yukihiro Matsumoto wrote: > "stdio" just doesn't provide the way to distinguish buffered and > unbuffered input. And glibc does not exist everywhere. So I have to > do the job by myself, if I want to tweak the buffer. And I want to. What about using setvbuf()? It's part of the C standard, and can be used to turn buffering on or off. The default buffering cannot be known, but the buffer size and/or buffering method can be changed. Paul