Mail Archives: djgpp/1994/04/05/19:30:38
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
- Raw text -