Date: Wed, 6 Apr 94 09:39:37 -0400 From: dj AT ctron DOT com (DJ Delorie) To: leisner AT sdsp DOT mc DOT xerox DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: exec on dos > I saw the code for exec...it invokes spawn... > > where can I find spawn? also in libc.a (libsrc/c/dos/exec.c?) > How does djgcc do it? Is there a map of all the files? No, it spawns a new MS-DOS program. > The djgcc fork.c just does: > fork() > { > return -1; > } > > How was make done? (I don't have the source unpacked). make calls spawn directly, so it doesn't need to fork at all. It's conditional on __MSDOS__.