Well, there is no unix StreamNative.cpp :-)

read replace is not a reasonable combination, but it looks like the
open options parser is allowing this and depending upon the
SysFile::open() method that does the system specific thing to give an
error.  If there's a problem, then that's the location.  I think, for
the most part, those options are just passed through to the underlying
system open() function, so obviously the Windows one is giving an
error, but the linux one is not.

However, I believe this is something that should be captured by the
option parser and raised as an error rather than a non-ready
condition, since that's how other conflicting options are handled on
an open.  For example, doing an open("read write") is an error.  Since
replace implies write access, this should also be an error.  That can
be handled by just updating the parsing table.

Rick

On Thu, May 14, 2009 at 11:22 AM, Mark Miesfeld <miesf...@gmail.com> wrote:
> I thought I had read in the docs that for stream, the command 'open
> read replace' was not allowed, so I wrote a test case for that.
>
> On Windows the return is ERROR:22, but on Linux the return is READY:.
> Now I can't find anything in the docs that matches what I remember
> about 'open read replace' being not allowed.
>
> So, I'm not sure whether this is a bug, or just an allowable operating
> system difference.  Before I rewrite the test case or remove it, I
> wanted to be sure it is not a bug in the unix StreamNative.cpp
>
> --
> Mark Miesfeld
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to