summaryrefslogtreecommitdiff
path: root/newlib/syscalls.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-02 03:53:32 +0200
committerMiguel <m.i@gmx.at>2018-09-02 03:53:32 +0200
commitab6b44f5197e4c6c19f225f909035385d37883b4 (patch)
tree2c07e5bc65cf8e19a6433a7c0c5135eabb56a59c /newlib/syscalls.c
parentc459fab7662eaf45df9994c828065b9fc8d4a8ac (diff)
foolsnake showcasing multithreading and our console
Diffstat (limited to 'newlib/syscalls.c')
-rw-r--r--newlib/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/syscalls.c b/newlib/syscalls.c
index 3cd1f95..532f8b5 100644
--- a/newlib/syscalls.c
+++ b/newlib/syscalls.c
@@ -74,6 +74,11 @@ int _fork(void)
return syscall(SYSCALL_FORK,0,0,0);
}
+int _clone(void)
+{
+ return syscall(SYSCALL_CLONE,0,0,0);
+}
+
int _getpid(void)
{
return syscall(SYSCALL_GETPID,0,0,0);