[phobos] std.process Windows blocker
Lars Tandle Kyllingstad
lars at kyllingen.net
Tue May 4 02:34:23 PDT 2010
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? Is that different to
standard C?
> 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?
-Lars
More information about the phobos
mailing list