www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/15/22:48:38

Sender: nate AT cartsys DOT com
Message-ID: <37169E06.C23F3335@cartsys.com>
Date: Thu, 15 Apr 1999 19:18:46 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Stack in djgpp
References: <m10XR79-000S8IC AT inti DOT gov DOT ar> <m10Xsh0-000S74C AT inti DOT gov DOT ar>
Reply-To: djgpp-workers AT delorie DOT com

Salvador Eduardo Tropea (SET) wrote:
> 
> Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> said:
> > > > Answer in a nutshell: there *is* no 'spawn' on Unix (including Linux).
> > > > spawn and friends are a DOSism.
> > >
> > > Ok, so what's the best in this case:
> > > 1) Add conditional compilation stuff (makes the code harder to understand)
> > > 2) Implement spawn and make it conditional (taked from libc in DOS or the
> > > emulation under Linux).
> >
> > You could do that. But I strongly doubt you'ld ever manage to get the
> > maintainer of the original Unix version to accept that (s)he has to use a
> > DOSism like spawn, instead of the 'native' Unix method of fork/exec.
> 
> I'll try to use system, but the author is interested in the port and won't
> reject a spawn emulation.

Something else you might consider is `pexecute' from GNU's libiberty. 
It already works correctly on a wide range of OS's.

If the copying policy will permit the inclusion of GPL (not LGPL) code,
that is.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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