diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 19:40:11 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 19:40:11 +0200 |
commit | ac10c1a29c44b0cb29960cd0f792c7361bc430ce (patch) | |
tree | 33466e227a0214d40de373b72c83a750dba29195 /src/user/init | |
parent | 478c691187fbc9ba4ccaacf92f57828eef20041c (diff) | |
download | TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.tar.gz TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.zip |
Added some stuff.
Diffstat (limited to 'src/user/init')
-rw-r--r-- | src/user/init/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/init/main.c b/src/user/init/main.c index 7d4ea0e..54dd4b6 100644 --- a/src/user/init/main.c +++ b/src/user/init/main.c @@ -5,20 +5,20 @@ int main(char** args) { int i; - FILE term = open("/.ui/klog", 0); + term = open("/.ui/klog", 0); if (term <= 0) return -1; - fprint(term, "(init) Trivial/Computing Environment says hello. Press super to go home.\n"); + print("(init) Trivial/Computing Environment says hello. Press super to go home.\n"); for (i = 0; args[i] != 0; i++) { if (i == 0) continue; - fprintf(term, "(init) Spawning %s...\n", args[i]); + printf("(init) Spawning %s...\n", args[i]); int pid = run(args[i], 0); if (pid < 0) { - fprint(term, "(init) Error. Sorry.\n"); + print("(init) Error. Sorry.\n"); } else { waitpid(pid); } } - fprint(term, "(init) Goodbye.\n"); + print("(init) Goodbye.\n"); } |