Unbuffered read I/O
Etienne Fortin
etienne.fortin at sensio.tv
Thu Sep 16 21:17:16 UTC 2004
Looking at the code of fwrite, fread, _fread_r, setvbuf and the like , I
noticed that for writing, the memory region used in the call to the
driver is the memory region passed to fwrite if we are unbuffered. BUT,
for reading, the buffer passed is the little 1 byte long buffer in the
FILE structure (_ubuf). How comes it works like this? I was expecting
the reading buffer to be the one passed to the fread function...
Anyone can talk about this? :)
Etienne Fortin
More information about the users
mailing list