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/userspace/libc/syscall.c | |
parent | 2a0e810a473dea57fd1cd53ea424b61269c029ba (diff) |
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/userspace/libc/syscall.c')
-rw-r--r-- | src/userspace/libc/syscall.c | 16 |
1 files changed, 10 insertions, 6 deletions
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 |