aboutsummaryrefslogtreecommitdiff
path: root/common/uapi
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
parent8da0171e5ca3492cdb34422184a1c96acd0b5165 (diff)
downloadkmi-a4851206bef5ceecef18b3fde5be6918a67cca21.tar.gz
kmi-a4851206bef5ceecef18b3fde5be6918a67cca21.zip
add create syscall for threads
Diffstat (limited to 'common/uapi')
-rw-r--r--common/uapi/dispatch.c1
-rw-r--r--common/uapi/proc.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/common/uapi/dispatch.c b/common/uapi/dispatch.c
index 8ffaffb..97fc0d8 100644
--- a/common/uapi/dispatch.c
+++ b/common/uapi/dispatch.c
@@ -21,6 +21,7 @@ static const sys_t syscall_table[] = {
[SYS_IPC_RESP] = sys_ipc_resp,
/* proc */
+ [SYS_CREATE] = sys_create,
[SYS_FORK] = sys_fork,
[SYS_EXEC] = sys_exec,
[SYS_SIGNAL] = sys_signal,
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 };
}