www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/10/22:09:47

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10305110209.AA23962@clio.rice.edu>
Subject: Re: DXE3 in DJGPP CVS breaks cross-compiling
To: djgpp-workers AT delorie DOT com
Date: Sat, 10 May 2003 21:09:51 -0500 (CDT)
In-Reply-To: <200305090851.12215.pavenis@latnet.lv> from "Andris Pavenis" at May 09, 2003 08:51:12 AM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I tried just using the ../../include syntax for
coff.h, unconst.h and dxe.h 
by putting it in an ifdef if DXE_LD is defined (for native).

Then I found out we were using process.h - which is nonstandard,
to get to spawn() functions (since the exec functions which are
standard really require fork...)

I guess the more "standard, portable" way to do this is system(), which
we had before, or maybe popen().  Any other suggestions here?

It seems that the simple/ugly way would be to provide a fake spawn
wrapper which just loops the arguments into a string and then passes it
to system.

(A good thing is if we get rid of spawn() functions we can get rid of
unconst too).

- Raw text -


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