git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usermode - Renamed VFS syscalls to _Sys* to remove POSIX collisions
[tpg/acess2.git]
/
Usermode
/
Applications
/
init_src
/
main.c
diff --git
a/Usermode/Applications/init_src/main.c
b/Usermode/Applications/init_src/main.c
index
c18e5f8
..
5a4633c
100644
(file)
--- a/
Usermode/Applications/init_src/main.c
+++ b/
Usermode/Applications/init_src/main.c
@@
-37,16
+37,17
@@
int main(int argc, char *argv[])
{
termpath[sizeof(DEFAULT_TERMINAL)-2] = '0' + i;
-
open(termpath, OPENFLAG_READ);
// Stdin
-
open(termpath, OPENFLAG_WRITE);
// Stdout
-
open(termpath, OPENFLAG_WRITE);
// Stderr
+
_SysOpen(termpath, OPENFLAG_READ);
// Stdin
+
_SysOpen(termpath, OPENFLAG_WRITE);
// Stdout
+
_SysOpen(termpath, OPENFLAG_WRITE);
// Stderr
execve(DEFAULT_SHELL, child_argv, NULL);
- for(;;)
sleep()
;
+ for(;;) ;
}
}
// TODO: Implement message watching
- for(;;) sleep();
+ for(;;)
+ _SysWaitEvent(THREAD_EVENT_IPCMSG);
return 42;
}
UCC
git Repository :: git.ucc.asn.au