aboutsummaryrefslogtreecommitdiff
path: root/common/uapi/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-21 21:23:12 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-21 21:23:12 +0300
commita4851206bef5ceecef18b3fde5be6918a67cca21 (patch)
tree6d9a817a8e59687ef4e45388d310b9beda2ba335 /common/uapi/proc.c
parent8da0171e5ca3492cdb34422184a1c96acd0b5165 (diff)
downloadkmi-a4851206bef5ceecef18b3fde5be6918a67cca21.tar.gz
kmi-a4851206bef5ceecef18b3fde5be6918a67cca21.zip
add create syscall for threads
Diffstat (limited to 'common/uapi/proc.c')
-rw-r--r--common/uapi/proc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/uapi/proc.c b/common/uapi/proc.c
index bd5874d..3ce3bcb 100644
--- a/common/uapi/proc.c
+++ b/common/uapi/proc.c
@@ -1,5 +1,10 @@
#include <apos/uapi.h>
+SYSCALL_DEFINE0(create)()
+{
+ return (struct sys_ret){ OK, 0 };
+}
+
/* Not entirely sure how I should handle forks/execs etc, mostly whether I
* should allow forks/execs to be called directly or only though the process
* manager. Probably though the process manager, although that will add in a
@@ -12,7 +17,6 @@
*/
SYSCALL_DEFINE0(fork)()
{
- /* TODO: create new thread in the same process family */
return (struct sys_ret){ OK, 0 };
}