Re: Contiguous files and I/O buffered

Pavel Machek (pavel@elf.ucw.cz)
Wed, 28 Jan 1998 10:47:28 +0100


Hi!

> When executing fflush(..) and setbuf(.., NULL) to obtain
> unbuffered I/O, does the system really avoid buffering? For example,
> let us consider the two code fragments:

No. setvbuf() forces C library not to buffer. Currenlty, there's no
way to force kernel not to buffer.
Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).