Re: EOF detection
From: Pascal Bourguignon (spam_at_mouse-potato.com)
Date: 09/14/05
- Next message: voichekm_at_gmail.com: "Re: Algorithms discusssion"
- Previous message: Keith Dancey: "Re: Which C debugger is recommended for L"
- In reply to: junky_fellow_at_yahoo.co.in: "EOF detection"
- Next in thread: SM Ryan: "Re: EOF detection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Sep 2005 13:30:01 +0200
junky_fellow@yahoo.co.in writes:
> 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.
Yes.
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
- Next message: voichekm_at_gmail.com: "Re: Algorithms discusssion"
- Previous message: Keith Dancey: "Re: Which C debugger is recommended for L"
- In reply to: junky_fellow_at_yahoo.co.in: "EOF detection"
- Next in thread: SM Ryan: "Re: EOF detection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|