aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.h
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 15:44:11 +0200
committerMarvin Borner2020-05-02 15:44:11 +0200
commitaa8a8811818331cf511681327e3ba95e456f0d33 (patch)
tree852c314dae76e756863f94639ff45eff72834d5d /src/kernel/syscall/syscall.h
parent2a0e810a473dea57fd1cd53ea424b61269c029ba (diff)
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/kernel/syscall/syscall.h')
-rw-r--r--src/kernel/syscall/syscall.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/kernel/syscall/syscall.h b/src/kernel/syscall/syscall.h
index 502064b..322e551 100644
--- a/src/kernel/syscall/syscall.h
+++ b/src/kernel/syscall/syscall.h
@@ -2,21 +2,26 @@
#define MELVIX_SYSCALL_H
#include <stdint.h>
+#include <kernel/interrupts/interrupts.h>
extern void idt_syscall();
void syscalls_install();
-uint32_t sys_exec(char *path);
+uint32_t sys_exit(uint32_t code);
+
+uint32_t sys_fork(struct regs *r);
+
+uint32_t sys_read(char *path, uint32_t offset, uint32_t count, char *buf);
-uint32_t sys_putch(char ch);
+uint32_t sys_write(char *path, uint32_t offset, uint32_t count, char *buf);
-uint32_t sys_scancode();
+uint32_t sys_exec(char *path);
+
+uint32_t sys_get_pid();
uint32_t sys_malloc(uint32_t count);
uint32_t sys_free(uint32_t ptr);
-uint32_t sys_pointers();
-
#endif \ No newline at end of file