"Papastefanos Serafeim" <se******@otenet.grwrites:
I've never heard of the behaviour you mention.
The standard behavior for read is to read anything
available in the stream and return.
If there is no data available, then if read is reading
from a blocking descriptor it will block. If read is
reading from a non blocking descriptor then it will
return with an EAGAIN or EWOULDBLOCK
error.
Also, read and write are not in standard C, so
maybe in another newsgroup you'll get a better
answer than mine.
Please don't top-post. See <http://www.caliburn.nl/topposting.html>.
Please don't offer detailed answers to off-topic questions. The
experts on this stuff hang out in comp.unix.programmer. If you make a
mistake in your answer here (we all make mistakes), we're not going to
be able to correct it If we do, it will likely lead to a lengthy
off-topic discussion that should have been in comp.unix.programmer in
the first place.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.