aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent8da0171e5ca3492cdb34422184a1c96acd0b5165 (diff)
downloadkmi-a4851206bef5ceecef18b3fde5be6918a67cca21.tar.gz
kmi-a4851206bef5ceecef18b3fde5be6918a67cca21.zip
add create syscall for threads
Diffstat (limited to 'include')
-rw-r--r--include/apos/syscalls.h2
-rw-r--r--include/apos/uapi.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/apos/syscalls.h b/include/apos/syscalls.h
index b8553bc..9346da3 100644
--- a/include/apos/syscalls.h
+++ b/include/apos/syscalls.h
@@ -29,8 +29,10 @@ enum {
SYS_IPC_RESP, /* IPC response from server */
/* process management */
+ SYS_CREATE, /* create new thread */
SYS_FORK, /* duplicate process */
SYS_EXEC, /* execute new binary in process space */
+ SYS_KILL, /* kill thread */
SYS_SIGNAL, /* send signal to process (kill etc.) */
SYS_SWITCH, /* switch running process */
diff --git a/include/apos/uapi.h b/include/apos/uapi.h
index ff3f4d0..a3b54d5 100644
--- a/include/apos/uapi.h
+++ b/include/apos/uapi.h
@@ -98,6 +98,7 @@ SYSCALL_DECLARE(ipc_req);
SYSCALL_DECLARE(ipc_resp);
/* proc */
+SYSCALL_DECLARE(create);
SYSCALL_DECLARE(fork);
SYSCALL_DECLARE(exec);
SYSCALL_DECLARE(signal);