>> [IN, OUT, ERR, MSG] = pipe ()
>>
> Michael,
> Do you have a version of your patch for popen2/pipe that take into
> account all of John's comments? If so I'll test it under linux...
No, I'm not working on "pipe". "pipe" is currently not supported under
MSVC, because it does not have a POSIX pipe. It has however the
following:
_pipe (int *fildes, int size, int mode)
where size is the internal pipe buffer size and mode specifies the binary/text mode and inheritance. Making "pipe" work under MSVC is quite easy,
but I don't know which default values to use for the additional arguments,
especially the pipe size.
Concerning popen2, I'm working on it. Still I'm wondering whether I should
keep the interface I added in octave_syscalls and move the implementation
into a private octave_popen2 function in lo-sysdeps.cc; or drop the interface
in octave_syscalls class and export directly octave_popen2 from lo-sysdeps.cc
as a stand-alone function.