diff options
| author | Miguel <m.i@gmx.at> | 2018-09-20 10:46:00 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-20 10:46:00 +0200 |
| commit | 763f85c55fdb5a2c4f5bf98e4989a69d27da6e4f (patch) | |
| tree | b9be12d5c20ee1c5cc006b09a6a1584880c15928 /userspace/newcalls.h | |
| parent | 631fdbefc89a6202c5b8e2bf0e15a6ca7df809ef (diff) | |
pipes do not work :(
Diffstat (limited to 'userspace/newcalls.h')
| -rw-r--r-- | userspace/newcalls.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/userspace/newcalls.h b/userspace/newcalls.h new file mode 100644 index 0000000..9bc55a5 --- /dev/null +++ b/userspace/newcalls.h @@ -0,0 +1,15 @@ +////////////////////////////////////////////////// + +// this syscall will be moved to newlib later! +#define SYSCALL_CLONE 83 +#define SYSCALL_PIPE 84 + +int _clone(void) +{ + return syscall(SYSCALL_CLONE,0,0,0); +} +int _pipe(uint32_t fds[2]) +{ + return syscall(SYSCALL_PIPE,fds,0,0); +} +// |
