in reply to Testing for read() failures on different platforms
That said, I'm still wondering what other situations would generate a read failure. If you can successfully open a file, you should always be able to read from it. Of course, I suppose you could create the file, open it successfully, then delete it and try to read from it. That might generate a read error. Then again, a simplistic test on Cygwin(WinXP) didn't. I suffered from input buffering. *shrugs*
Good luck?
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing for read() failures on different platforms
by BrowserUk (Patriarch) on Jul 27, 2004 at 03:23 UTC | |
by PodMaster (Abbot) on Jul 27, 2004 at 07:40 UTC | |
by leriksen (Curate) on Jul 27, 2004 at 05:07 UTC | |
|
Re^2: Testing for read() failures on different platforms
by leriksen (Curate) on Jul 27, 2004 at 02:47 UTC | |
|
Re^2: Testing for read() failures on different platforms
by calin (Deacon) on Jul 27, 2004 at 09:01 UTC | |
by hbo (Monk) on Jul 27, 2004 at 15:29 UTC | |
|
Re^2: Testing for read() failures on different platforms
by adrianh (Chancellor) on Jul 27, 2004 at 22:54 UTC | |
by leriksen (Curate) on Jul 28, 2004 at 01:06 UTC | |
by leriksen (Curate) on Jul 28, 2004 at 07:13 UTC |