diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 11:45:49 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 11:45:49 +0200 |
commit | 499ca6c243b05da176a2d4bd9a2317f0b28afc7f (patch) | |
tree | f55ff788632b017ab8de83b71ad02b0998e1dda5 /src/user/init/main.c | |
parent | 7b466345af0d3a7dc5622617ce443a90c64e34a4 (diff) | |
download | TCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.tar.gz TCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.zip |
Introducing FWIK, the userland C++ framework. Far from complete.
Diffstat (limited to 'src/user/init/main.c')
-rw-r--r-- | src/user/init/main.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/user/init/main.c b/src/user/init/main.c deleted file mode 100644 index 7300efe..0000000 --- a/src/user/init/main.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <tce/syscall.h> -#include <stdlib.h> -#include <stdio.h> - -int main(char** args) { - int i; - - FILE home_term = open("/.ui/home", 0); - if (home_term < 0) return -1; - - print("(init) Trivial/Computing Environment says hello. Press super to go home.\n"); - - for (i = 0; args[i] != 0; i++) { - if (i == 0) continue; - printf("(init) Spawning %s...\n", args[i]); - int pid = run(args[i], 0, home_term); - if (pid < 0) { - print("(init) Error. Sorry.\n"); - } else { - waitpid(pid, 1); - } - } - print("(init) Goodbye.\n"); -} |