popen() to execute\read a Linux (not windows) command

Eric Pouech eric.pouech at wanadoo.fr
Sat Nov 26 09:24:37 CST 2005

Boaz Harrosh wrote:
> Eric Pouech wrote:
>> Boaz Harrosh wrote:
>>> Such a program could also be useful for a Native app that needs to 
>>> run a Linux application.
>> we should even try to integrate it to popen in builtin msvcrt
>> A+
> What do you mean? with a check for a "special" app_name. Or an 
> auto-detection of the binary and delegation to (g)libc - popen? And 
> bridge of Wine-std-I/O to Linux-std-I/O.
> I thought about it a bit, The I/O bridging will have to be either done 
> with threads, or with async I/O in Read/WriteFile and accept on the 
> Linux side.
why would you need dedicated threads ? you just need to link parent's 
handles to unix fd created for child (you may have for simplicity to 
implement Unix popen in msvcrt, but that shouldn't be too hard)

Eric Pouech

More information about the wine-devel mailing list