diff options
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); +} +// |
