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/userspace/libc/syscall.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/userspace/libc/syscall.c') diff --git a/src/userspace/libc/syscall.c b/src/userspace/libc/syscall.c index 1741376..f6761ac 100644 --- a/src/userspace/libc/syscall.c +++ b/src/userspace/libc/syscall.c @@ -5,14 +5,18 @@ */ DEFN_SYSCALL0(halt, 0); -DEFN_SYSCALL1(exec, 1, char *); +DEFN_SYSCALL1(exit, 1, u32); -DEFN_SYSCALL1(putch, 2, char *); +DEFN_SYSCALL0(fork, 2); -DEFN_SYSCALL0(scancode, 3); +DEFN_SYSCALL4(read, 3, char *, u32, u32, char *); -DEFN_SYSCALL1(malloc, 4, u32); +DEFN_SYSCALL4(write, 4, char *, u32, u32, char *); -DEFN_SYSCALL1(free, 5, u32); +DEFN_SYSCALL1(exec, 5, char *); -DEFN_SYSCALL0(pointers, 6); \ No newline at end of file +DEFN_SYSCALL0(get_pid, 6); + +DEFN_SYSCALL1(malloc, 7, u32); + +DEFN_SYSCALL1(free, 8, u32); \ No newline at end of file -- cgit v1.2.3