From aa8a8811818331cf511681327e3ba95e456f0d33 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 2 May 2020 15:44:11 +0200 Subject: Added many syscalls to get better POSIX compliance --- src/kernel/syscall/syscall.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/kernel/syscall/syscall.h') 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 +#include 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 -- cgit v1.2.3