From d54c6b7f6be3184eebc5f0053f6253fd4358b31b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 29 Sep 2023 17:24:21 +0300 Subject: [PATCH] LibC: Fix mmap() mmap() did not pass fildes to the syscall structure. --- libc/sys/mman.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/sys/mman.cpp b/libc/sys/mman.cpp index 73ad1d72ab..c43ecf3fb7 100644 --- a/libc/sys/mman.cpp +++ b/libc/sys/mman.cpp @@ -9,6 +9,7 @@ void* mmap(void* addr, size_t len, int prot, int flags, int fildes, off_t off) .len = len, .prot = prot, .flags = flags, + .fildes = fildes, .off = off }; long ret = syscall(SYS_MMAP, &args);