in reply to Re: Testing for read() failures on different platforms
in thread Testing for read() failures on different platforms
I can think of two ways a read from a successfully opened file could fail:
Opening a file for write access and then trying to read from it. Perl catches this.
Opening a file on removeable media, and then the media is removed before the read attempt.
Under win32 (native), this results in an "Abort, retry, continue" popup. Retry is loop unless it is reinserted. The other two result in the read completing as if the file where empty. Ie. a successful read of zero bytes. I'm not sure what *nix would do under these circumstances.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Testing for read() failures on different platforms
by PodMaster (Abbot) on Jul 27, 2004 at 07:40 UTC | |
|
Re^3: Testing for read() failures on different platforms
by leriksen (Curate) on Jul 27, 2004 at 05:07 UTC |