[phobos] std.process Windows blocker

Lars Tandle Kyllingstad lars at kyllingen.net
Tue May 4 04:36:17 PDT 2010


Oops.. sorry for the out-of-context e-mail, everyone.  I thought the
message to which I was replying was sent to the Phobos list, but I see
now it wasn't.

-Lars



On Tue, 2010-05-04 at 11:34 +0200, 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?  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
> 
> 
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos




More information about the phobos mailing list