diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 16:16:07 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 16:16:07 +0200 |
commit | 7e6454020ed1143e05e83a683606f318995458e5 (patch) | |
tree | 763ec6f5dda5f8f662f5eeb38f29d4279681b0a2 /src/user/lib/tce | |
parent | daa6c2450fa0646619698f0dc01b0456b2541317 (diff) | |
download | TCE-7e6454020ed1143e05e83a683606f318995458e5.tar.gz TCE-7e6454020ed1143e05e83a683606f318995458e5.zip |
Can now spawn new processes.
Diffstat (limited to 'src/user/lib/tce')
-rw-r--r-- | src/user/lib/tce/syscall.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/user/lib/tce/syscall.c b/src/user/lib/tce/syscall.c index 3e8d75e..bc8bfd8 100644 --- a/src/user/lib/tce/syscall.c +++ b/src/user/lib/tce/syscall.c @@ -73,6 +73,16 @@ void brk(void* ptr) { return call (SC_BRK, ptr, 0, 0, 0, 0); } +// ********** proc + +int run(char* filename, char** args) { + return call(SC_RUN, (unsigned)filename, (unsigned)args, 0, 0, 0); +} + +int waitpid(int p) { + return call(SC_WAITPID, p, 0, 0, 0, 0); +} + // ********** file FILE open(char* filename, int mode) { |