diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-10-23 08:41:34 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-10-23 08:41:34 +0200 |
| commit | 463736887fbb6439fe5e676f6fd7990adc6bb727 (patch) | |
| tree | 00dcb1fb5d426d13ef854820a8672470e49530a7 /userspace/simple.c | |
| parent | fde24d20cd6a7d5fd1f1df71515e377586b91e24 (diff) | |
added execve syscall
Diffstat (limited to 'userspace/simple.c')
| -rw-r--r-- | userspace/simple.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/userspace/simple.c b/userspace/simple.c new file mode 100644 index 0000000..36f0580 --- /dev/null +++ b/userspace/simple.c @@ -0,0 +1,18 @@ +#include "syscalls.c" + +int main(int argc, char **argv) +{ + syscalls_init(); + + int i; + + for(i=0;i<10;i++) + { + write(1,"dupa\n",5); + } + + // replace with foolshell after finishing! + execve(15,0,0); +} + + |
