summaryrefslogtreecommitdiff
path: root/userspace/newcalls.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-20 10:46:00 +0200
committerMiguel <m.i@gmx.at>2018-09-20 10:46:00 +0200
commit763f85c55fdb5a2c4f5bf98e4989a69d27da6e4f (patch)
treeb9be12d5c20ee1c5cc006b09a6a1584880c15928 /userspace/newcalls.h
parent631fdbefc89a6202c5b8e2bf0e15a6ca7df809ef (diff)
pipes do not work :(
Diffstat (limited to 'userspace/newcalls.h')
-rw-r--r--userspace/newcalls.h15
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);
+}
+//