www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/08/09:56:51

From: Christopher Croughton <crough45 AT amc DOT de>
Message-Id: <97Jul8.154936gmt+0100.16641@internet01.amc.de>
Subject: Re: interesting redir behavior
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Tue, 8 Jul 1997 14:53:46 +0100
Cc: crough45 AT amc DOT de, djgpp AT delorie DOT com
In-Reply-To: <Pine.SUN.3.91.970708163358.13991B-100000@is> from "Eli Zaretskii" at Jul 8, 97 02:35:11 pm
Mime-Version: 1.0

Eli Zaretskii wrote:

> > Are you saying that DJGPP's implementation of dup2 is 
> > broken?
> 
> No, I just forgot about it.  Thanks.
> 
> (`dup2' cannot be broken, since it really calls DOS right away.)

That's rather what I hoped, I couldn't see any reason why it wouldn't
(but with all the protected mode stuff there could be one).  So why
(apart from historical reasons) doesn't REDIR use dup2?  I suspect
that the OPENDOS COMMAND.COM uses dup2 (or rather the MSDOS call
directly, probably) which is why it (and 4DOS) work with OPENDOS
and REDIR doesn't...

Can someone with OPENDOS try it and report back, please?

And do other redirecting functions like popen() (and system()?) work
on OPENDOS?  The faster these things are tested the faster they'll get 
fixed...

(Sorry, until OPENDOS is a lot more stable than it's reported at present
I'm not trusting it on my system, otherwise I'd test it myself...)

Chris C

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019