Added fork, exec, wait
authorAndrew Waterman <waterman@ubuntu.(none)>
Sun, 3 Jan 2010 01:10:34 +0000 (17:10 -0800)
committerAndrew Waterman <waterman@ubuntu.(none)>
Sun, 3 Jan 2010 01:10:34 +0000 (17:10 -0800)
commit87779b5b41eb9d610efbb9b7237e1bd35836ab8d
tree3574192f4739310d3c69e7faa48ada2a94cd9e83
parent88602496e093fe540ee53220561f546eb69103f5
Added fork, exec, wait

This probably deserves more explanation than I'll give here,
but here's the skinny: fork is a naive implementation that
doesn't work with mmap'd pages and doesn't use copy-on-write.

exec still takes a binary blob as an argument, like run_binary,
but unlike run_binary, it overwrites the calling process.

wait relies on a new process field called exitcode, which is
set by sys_proc_destroy() (therefore on exit()).

also added ppid to procinfo.
kern/include/env.h
kern/include/ros/procdata.h
kern/include/ros/syscall.h
kern/src/process.c
kern/src/syscall.c
user/parlib/src/sparc/newlib_backend.c