diff options
author | Marvin Borner | 2020-05-02 15:44:11 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-02 15:44:11 +0200 |
commit | aa8a8811818331cf511681327e3ba95e456f0d33 (patch) | |
tree | 852c314dae76e756863f94639ff45eff72834d5d /src/kernel/syscall/syscall.h | |
parent | 2a0e810a473dea57fd1cd53ea424b61269c029ba (diff) |
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/kernel/syscall/syscall.h')
-rw-r--r-- | src/kernel/syscall/syscall.h | 15 |
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 |