summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.h')
-rw-r--r--src/kernel/syscalls.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h
index ceb90c1..c010a61 100644
--- a/src/kernel/syscalls.h
+++ b/src/kernel/syscalls.h
@@ -1,9 +1,15 @@
+// note: this file gets included in both kernel and userland
#pragma once
+#include <stddef.h>
-// not caring about stable syscall numbers just yet
enum {
- SC_EXIT,
- SC_FORK,
-
- SC_DEBUGLOG
+ // idc about stable syscall numbers just yet
+ _SYSCALL_EXIT,
+ _SYSCALL_FORK,
+
+ _SYSCALL_DEBUGLOG
};
+
+_Noreturn void _syscall_exit(const char *msg, size_t len);
+int _syscall_fork();
+int _syscall_debuglog(const char *msg, size_t len);