To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: exec on dos Date: Tue, 5 Apr 1994 14:47:36 PDT From: "Marty Leisner" I saw the code for exec...it invokes spawn... where can I find spawn? I had an implementation on dos of fork...it worked well for small applicatons (left the code segment alone, copied the data segment and played with the PSP). One of the major advantages is Unix applications didn't have to change if they did: switch(fork()) { case child: exec() case parent: wait(); } I ended up mucking with the C startup code and exec to put an extended command line in the environment (and counted on a shell to do command line globbing). How does djgcc do it? Is there a map of all the files? The djgcc fork.c just does: fork() { return -1; } How was make done? (I don't have the source unpacked). marty leisner AT sdsp DOT mc DOT xerox DOT com leisner AT eso DOT mc DOT xerox DOT com