Mail Archives: djgpp/1999/02/16/02:51:19

Date: Tue, 16 Feb 1999 09:48:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mad Cow <madcow_sabel AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Unix System Calls
In-Reply-To: <>
Message-ID: <Pine.SUN.3.91.990216094538.14991L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 15 Feb 1999, Mad Cow wrote:

> I would like to write programs that use Unix system calls like fork() 
> and waitpid(x,x,x), on my home computer running Windows95 and DOS.  
> Is there a library or emulator out there where I can write and debug 
> code on my 95 machine, then take it to work and have the code (with Unix 
> system calls) compile on a Unix system?

If you need to debug the code that depends on `fork' and `waitpid' to 
work as they do on Unix, I'm afraid you are out of luck: I'm not aware of 
any such emulation.

Otherwise, you could replace the `fork'/`exec'/`waitpid' stuff with stubs 
that just let the program run without bailing out, and debug the rest of 
the program.

- Raw text -

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