Lars Tandle Kyllingstad wrote:
On Mon, 2010-05-03 at 18:54 -0700, Steve Schveighoffer wrote:
Everyone,
I worked on getting Lars' std.process compiled for Windows. However, I've
reached a very big blocker.
Basically, the digital mars C runtime library has no way to create pipes into
file descriptors. Therefore, you cannot redirect a child's output to the
parent or vice versa.
This is not really related to your question, but your wording makes me
curious: Is D on Windows somehow tied to DMC?
Yes. It has to be tied to a C compiler.
Is that different to standard C?
No. Standard C does not cover an ABI.
I can create pipes by directly calling the Windows system call, the problem is,
the C runtime lacks a way of wrapping a Windows HANDLE type into a FILE *. [...]
You'd think that would be a common enough situation to warrant having a
function in the Windows API doing just that -- like POSIX' fdopen(). I
mean, isn't FILE* the de facto file handle standard in the C world?
Pipes aren't standard C <g>.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos