summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2021-07-31 15:19:05 +0200
committerdzwdz2021-07-31 15:19:05 +0200
commitcdaa35faca77a487f3afda0da6a0bd19af5908ca (patch)
tree96d5f52a98fce39e7726136385f50b71bbb2182e /src/kernel
parente56a5a519b157f62a2236c6395b45fc2d4ac7b66 (diff)
try documenting the syscalls (and fail badly)
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/syscalls.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h
index c010a61..78a47b2 100644
--- a/src/kernel/syscalls.h
+++ b/src/kernel/syscalls.h
@@ -10,6 +10,17 @@ enum {
_SYSCALL_DEBUGLOG
};
+/** Kills the current process.
+ * TODO: what happens to the children?
+ */
_Noreturn void _syscall_exit(const char *msg, size_t len);
+
+/** Creates a copy of the current process, and executes it.
+ * All user memory pages get copied too. Doesn't return anything useful.. yet.
+ */
int _syscall_fork();
+
+/** Prints a message to the debug console.
+ * @return the amount of bytes written (can be less than len)
+ */
int _syscall_debuglog(const char *msg, size_t len);