Re: EOF detection
From: Pascal Bourguignon (spam_at_mouse-potato.com)
Date: Wed, 14 Sep 2005 13:30:01 +0200
> Is it guaranteed that if return value of read system call (for
> read request of gerater than 0 bytes) is 0, eof
> has been reached.
That is, there was an EOF at that position when read tried to read.
But just a microsecond later, another process may have already written
more bytes to the file and the EOF might already be megabytes further.
-- __Pascal Bourguignon__ http://www.informatimago.com/ There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him. -- Robert Heinlein